Add content block in the posts below social sharing

Posted in: Newspaper
Post count: 24

Hi,

I need to add a content block from content network to my post templates, basically just below OR above the bottom social sharing, I also need to do this for mobile. Please advise.

regards,

Yucca

  • This topic was modified 9 years by yuccarichard. Reason: typo
Post count: 22421

Hello Yucca,

You can edit the theme template files that correspond to each post style you use on your site and use a do_shortcode function like so:
<?php echo do_shortcode('[vc_row][vc_column][td_block_5 custom_title="Block title2" limit="3"][/vc_column][/vc_row]');?>
http://screencast.com/t/2QKMvATQ2jY
You can get the shortcodes for any block from visual composer if you access the classic mode and text mode in the mce editor: http://screencast.com/t/c8HfwvZt

Thank you!

Post count: 24

thanks, works for desktop fine, what about in mobile theme? need to add custom content in same spot below social share?

Post count: 24

I also need to place code in the mobile theme <head> and just before </body> tags, please advise.

Post count: 22421

Hello,

The mobile theme has it;s own files you can find here: http://screencast.com/t/w4yzRiRApxhs
Header.php is the one you need to edit to add code to the head tag
The post file on the mobile theme is just 1 found here: http://screencast.com/t/h7dYoblidjz

Thank you!

Post count: 24

thanks guys, got all setup now 🙂

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