-
Author
-
January 10, 2016 at 12:30 #97567himanshuParticipant
I want to ad my adsense just after the page break on my single posts. How do I do that? I don’t mind editing the php code. Just let me know which file I should be editing to get it working. Thanks.
Attachments:
You must be logged in to view attached files.January 10, 2016 at 15:22 #97596sharmstrModeratorCopy single.php to your child theme. You can add it just before the posts-social-share template call.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
January 12, 2016 at 10:10 #97927himanshuParticipantHello sharmstr.
Thanks for replying. When I add my adsense code before the posts-social-share template call as you have suggested, it doesn’t allign with the post (Please refer to screenshot attached). I want my adunits to be alligned with the posts without using any extra css.
Is there a way I can add the code in “article-content” div. That will solve all my problems.
Thanks and Regards
Attachments:
You must be logged in to view attached files.January 12, 2016 at 14:13 #97957sharmstrModeratorEach post format (standard, image, video, etc) has its own template called content-xxx.php (replace xxx with the format type) that contains the article container. You can edit each one of those but you’ll have to keep an eye on those pages with every Kleo update to make sure they havent changed. Its better in the long run to only have to maintain the single.php page and add css.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.