How to add Social button in Category

Posted in: Newspaper
Post count: 6

I have a problem about to add the social button in category template.

Must be enter the following code:
<?php if(function_exists(‘social_ring_show’)){ social_ring_show();} ?>

The system should display the social button for each article list (after little description preview) in the category page.

The same modify must be applied for the page template.

Where I can paste this code?

Thanks in advance

Post count: 1291

Hi,

Not sure what you mean, do you want to add that code after each post? Please provide more details.

Thank you, Emil G.

Post count: 6

Hi,

I try to explain the my necessity:
I will display the social button after the post in a category page.

For example:
If I stay in category page, the preview article are displayed.
I need to display the social button (<?php if(function_exists(‘social_ring_show’)){ social_ring_show();} ?>) after each post in the category page.

I hope I was clear.
Thanks

Post count: 1291

Hi,

Try to add the code in each module, the files are located here – http://screencast.com/t/vl6ziSBat8U

<div class="social_ring_share">
                <?php if(function_exists('social_ring_show')){ social_ring_show();} ?>
            </div>

Thank you, Emil G.

  • This reply was modified 11 years by Emil G.
Post count: 6

Sorry
but it is not work.
I enters the tag in the file td_module2.php and social button doesn’t displayed.

I try to update the file category.php and/or loop.php but doesn’t work

Regards

Post count: 6600

Hi,

I have also installed the WordPress Social Ring and tested this bay adding the code as Emil suggested to the module 2 file and seems that it dose work: http://screencast.com/t/fxevL8b4bE
Result: http://screencast.com/t/ShQgvD1hYaH
Please make sure you add the code like I did in the screenshot and that you have the Social Ring plugin active: http://screencast.com/t/7o4ivru7ih
This should work fine!

Thanks

Post count: 6

Sorry,

I paste the code in td_module2.php another times but doesn’t work.
The code is pasted below the code (<?php echo $this->get_item_scope_meta(); ?>)
I don’t know why it is not work.

When i reloads the category page, the article don’t have the social button.

Post count: 6

Great.

I updates all td_module .php and now it’s work.
But not all button are displayed

Thanks

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