Adding VC Code to header

Posted in: Newspaper
Post count: 3

I would like to have some VC stuff in the header as I would like to enable and disable a Breaking News Box across the whole website.

Here’s the code I have place in the single page

<?php echo do_shortcode("[vc_row][vc_column][vc_message color="alert-info"]Welcome to WNewsNetwork's New Website. Read the latest Social News on Your Social News Network. If you don't have a WNewsNetworks Account, please signup just below.[/vc_message]"); ?>
<?php echo do_shortcode("[td_block_trending_now style="style2" limit="3"]"); ?>
<?php echo do_shortcode("[vc_message message_box_style="solid" style="square" message_box_color="black" icon_fontawesome="fa fa-globe" css=".vc_custom_1470441776291{background-color: #000000 !important;}"]
<h1><span style="color: #ffffff;">#WNNBreakingExample Breaking News Story</span></h1>
[/vc_message]"); ?>

But I’m having issues with a php error on line 9.

Post count: 22421

Hi,

Your code is not working as it;s missing a closing tag after the php code ends: http://screencast.com/t/dBTd3vtu

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.