Post count: 263
Hi,
I’m using template 2 as a post, I wanted to add a simple iframe, so I can like in the facebook page of the site.
this is a code:
<div id=fblike><span>Follow KNews.it on Facebook</span><iframe src="https://www.facebook.com/plugins/like.php?...." width="....></iframe></div>
I wanted to put it at the end of the article, between Bottom Content Ads and the Related Posts.
Which file should I add the code ???
I hope you understand what I want to do.
I look forward to your advice, good work.
Post count: 2759
you can use this code, and put it on your jnews child theme file functions.php
:
|
add_action('jnews_single_post_after_content', function(){ echo 'PUT_YOUR_HTML_CODE_HERE'; }, 39); |
Thank you
Post count: 263
Hi,
Ok, it works. Thanks and good job