• Resolved kevinh150

    (@kevinh150)


    I have the “all in one adsense” plugin and it works fine on my theme for the posts but not with the homepage. What I want to do is put one on the sidebar and maybe one as the header, can anyone help me coding with that? I tried to put the ad code in header.php and sidebar.php but the header only shows up on posts and it pushes the whole backround down, any way to put it on the same layer as the backround? Thanks in advance.

    My website is https://www.prettycoolgame.com/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter kevinh150

    (@kevinh150)

    My template doesn’t have any of those codes they say to put it in, here is what the header.php looks like in the area that it says to place the code.

    <li class="page_item"><a href="<?php bloginfo('url'); ?>" class="title" title="Home">Home</a></li>
    
    <?php wp_list_pages("sort_order=$artsee_order_page&depth=1&exclude=$artsee_exclude_page&title_li="); ?>
    </ul>
    <img src="<?php bloginfo('template_directory'); ?>/images/pages-bg-right.gif" alt="pages bg right" style="float: right;" />
    Thread Starter kevinh150

    (@kevinh150)

    Okay, I figured it out for the sidebar. All I needed to do was add the “Text” widget with the code in it, now just to figure out how to do it with the header maybe.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add adsense ads?’ is closed to new replies.