Support » Fixing WordPress » my ad in the sidebar drops to the footer

  • When placing my ad in the sidebar, at certain times it will drop to the footer of my blog. Am I missing something?
    tthe code i place in the stylesheet:

    #ads {
    text-align: justify;
    padding-left: 10px;
    padding-right: 10px;

    and i paste this to the index.php file, single.php file and page.php file just before the call for the leftmenu.php:

    <div class=”ads”>
    <p style=”text-align:center”>ad script here </p>

    for some ads, it works fine, but for others, it drops to the footer.

Viewing 6 replies - 1 through 6 (of 6 total)
  • anybody?

    your code should probably be placed in the sidebar leftmenu.php…not index.php

    Does it matter that I have two sidebars? sidebar.php and leftmenu.php

    it doesn’t matter…where do you want the ad to be?

    i want the ad to be above both of the sidebars, like on this site makingitlovelyDOTcom

    Okay, that’s a different question.

    What you want is to create a container for your ad and your sidebars. So after the loop you should see a /div to close the posting container. After that, you probably see calls to your leftmenu and sidebar. Before the calls, do a div with your ad content, make your calls to the leftmenu and sidebar, then close the container with a /div. your sidebars will be inside the container and probably contain their own div’s. You would control the width of the container and the sidebars using your css file.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘my ad in the sidebar drops to the footer’ is closed to new replies.