Adding H4 BLOCK TITLE beneath content

Posted in: Newspaper
Post count: 161

Hi,

I just installed a plugin that adds social sharing buttons below the content. I would like to add the block title as used everywhere in theme above it, but i don’t know where to add this code: <h4 class="block-title"><span>SHARE</span></h4>

Here’s a link to my website so you can have a look:

Normally i would have added it to the single.php file, but this theme builds up the posts differently than other themes. On my other websites i could just paste the code in the single.php. Also, i would like to place the previous and next post buttons above the sharing buttons.

Also, i want to add the facebook comment box below the share buttons and above the related content block. Where do i add the facebook code?

  • This topic was modified 12 years by r1kay.
Post count: 161

Well i’ve found another post regarding to the single.php and figured it out myself. Here’s the solution:

$buffy .= '<br><h4 class="block-title"><span>DEEL</span></h4>';
			$buffy .= do_shortcode('[ssba]');

$buffy .= do_shortcode(‘[ssba]’) is the code that triggers my social sharing buttons plugin.

I’ve added this to line 58 in themes/Newspaper/includes/app/modules/td_module_1.php. Any modification to the standard post lay-out (normally made in single.php) can be made in this file.

Post count: 3343

Hello,
I’m glad you solved. We working for the version 3 update, and in this update we want to rewrite the code a little to standard WordPress code.

Thanks for the message and Happy New Year!!!

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