A quick question – adding social stickers to a php page
-
Hi Bo?tjan,
Firstly thanks for a great plugin. I’m more than happy to buy you a coffee, heck have two! I hope you received the Paypal donation OK. ??
I do have one quick question if I may. I’m trying to insert Social Stickers so that it appears underneath the meta data (date, author etc) post details on my website.
Ideally I would like it to appear below the ” 1 Comment ” meta data on my posts. (Here’s a post page example for you – https://www.ostomyland.com/ostomyland/2014/01/13/colostomy-association-tidings-winter-2014-issue-32/ )
My attempts have looked somewhat screwy, as you can see in this screenshot…. https://imageshack.us/a/img856/6228/xv5o.png
The original code in my php file is:
<?php if($gantry->get('post-meta-comments')) : ?> <!-- Begin Comments --> <span class="rt-comment-text"><?php comments_number(_r('0 Comments'), _r('1 Comment'), _r('% Comments')); ?></span> <!-- End Comments --> <?php endif; ?>
I do not have any PHP experience so I’ve spent two hours editing this, experimenting, trying to insert Social Stickers below the comments data but Ive had no luck. The line of code I added is this below, I placed it on the line after the closing <?php endif; ?>
<span class="rt-comment-text"><?php display_social_stickers(); ?></span>
So, as you can see it hasnt gone to a new line. What do I need to add, or change, to get the social stickers to appear below the comments data, ideally with the text “Follow Us:” above the social stickers too, in the same small grey text that the other meta data appears as.
Could you let me know how I could achieve this?
Sorry to be so thick thank you again for a fab plugin. ??
Jason.
- The topic ‘A quick question – adding social stickers to a php page’ is closed to new replies.