This topic has 3 replies, 2 voices, and was last updated 8 years by sharmstr.

  • Author
  • #97567
     himanshu
    Participant

    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.
    #97596
     sharmstr
    Moderator

    Copy 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #97927
     himanshu
    Participant

    Hello 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.
    #97957
     sharmstr
    Moderator

    Each 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 solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?