• I was wondering how/where to add Adsense code to show a banner ad between the top bar and page content. I noticed the option to upload an image for that area, but not text. Any suggestions?

Viewing 3 replies - 1 through 3 (of 3 total)
  • hannah

    (@hannahritner)

    Hey,
    The premium theme has an option for a widget area in the header, but not the free. You would either need to put it in the topbar widget area or the footer. You could also put it in your sidebar, depending on whether or not you’re using the sidebar.

    Hannah

    Thread Starter xjcheevers

    (@xjcheevers)

    I have figured out where to add a <div> between the topbar and page content area to place an ad, but it shows on every page except the homepage. Any suggestions on which php template file is loaded for the front page with latest posts for the content?

    Hey,
    You can edit front-page.php but I would suggest actually using a child theme and hooking your code into the page through a function rather than overriding files.

    For example:

    add_action('kt_afterheader', 'custom_code_output');
    function custom_code_output() {
    echo 'code';
    }

    Ben
    Kadence Themes

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adsense Ad in Sitewide Banner’ is closed to new replies.