WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How do I remove banner space from the top of the page? (21 posts)

  1. mattlambeau
    Member
    Posted 3 years ago #

    I am usine Socrates theme. How do I remove the alloted space for a banner on the top of my blog pages. I decided not to have banner advertising.

    Thanks in advance

  2. esmi
    Forum Moderator
    Posted 3 years ago #

    There are thousands of WordPress themes - which means that many people won't be familiar with your particular theme. So a link to your site where people can see the theme might result in more responses.

  3. mattlambeau
    Member
    Posted 3 years ago #

    sorry about that. here is a link to a page with the banner ad space on top. http://theffacts.com/category/irrefutable-ffacts/

  4. esmi
    Forum Moderator
    Posted 3 years ago #

    Try editing your theme's header.php file and removing:

    <div class="im-topAds">
    <div onmouseout="mouseOut3()" onmouseover="mouseOver3()" class="top728">
    <div style="height: 90px;" id="adNew1">728x90 HTML Advertising Code</div>
    </div>
    <div onmouseout="mouseOut()" onmouseover="mouseOver()" class="side190">
    </div>
    </div>
  5. mattlambeau
    Member
    Posted 3 years ago #

    I don't see that code in the header.php file. However, I do see somthing similar in the TopAd.php file. here is what I see:

    <div class="im-topAds">
    <div class="top728" onmouseover="mouseOver3()" onmouseout="mouseOut3()">

    <?php
    $topAd = get_option("socratesOptions");
    if (!is_array( $topAd )){
    $topAd['ads'] = 'sample ads go here';
    }

    $adcounter = 0;
    if ($topAd['ads'] != ''){
    echo '<div id="adNew1" style="height:90px;">'.stripslashes($topAd['ads']).'</div>';
    $adcounter++;
    }

    if ($topAd['ads2'] != ''){
    echo '<div id="adNew2" style="height:90px;">'.stripslashes($topAd['ads2']).'</div>';
    $adcounter++;
    }

    if ($topAd['ads3'] != ''){
    echo '<div id="adNew3" style="height:90px;">'.stripslashes($topAd['ads3']).'</div>';
    $adcounter++;
    }

    ?>

    Should I remove that?

  6. esmi
    Forum Moderator
    Posted 3 years ago #

    Leave that for now. Is there a reference in header.php to something like <?php include TEMPLATEPATH . 'TopAd.php';?> in header.php? If so, try just removing that line.

  7. mattlambeau
    Member
    Posted 3 years ago #

    I did a search on the header.php file for "TopAd" and "TEMPLATEPATH" and both are not present. should I cut and paste the whole header.php file so you can see it?

    thanks a billion for the help

  8. mattlambeau
    Member
    Posted 3 years ago #

    maybe this is it?

    <body <?php body_class(); ?>>
    <div class="im-wrapper" align="center">
    <div class="topBar"></div>
    <div class="im-frame">

    <!-- Upper Navigation -->
    <?php if (!$topNav['display'] || $topNav['display'] == 'none' ){ ?>
    <div class="im-topNav" style="background:none"></div>
    <?php } else {
    $custom_fields = get_post_custom($post->ID);

  9. mattlambeau
    Member
    Posted 3 years ago #

    this is in the topAd.php file. this might be it:

    <div class="im-topAds">
    <div class="top728" onmouseover="mouseOver3()" onmouseout="mouseOut3()">

    <?php
    $topAd = get_option("socratesOptions");
    if (!is_array( $topAd )){
    $topAd['ads'] = 'sample ads go here';
    }

    $adcounter = 0;
    if ($topAd['ads'] != ''){
    echo '<div id="adNew1" style="height:90px;">'.stripslashes($topAd['ads']).'</div>';
    $adcounter++;
    }

    if ($topAd['ads2'] != ''){
    echo '<div id="adNew2" style="height:90px;">'.stripslashes($topAd['ads2']).'</div>';
    $adcounter++;
    }

    if ($topAd['ads3'] != ''){
    echo '<div id="adNew3" style="height:90px;">'.stripslashes($topAd['ads3']).'</div>';
    $adcounter++;
    }

    ?>

    </div>
    <div class="side190" onmouseover="mouseOver()" onmouseout="mouseOut()">

    <?php //loop through the small ads and create a sliding dive for each one.
    $smallAds = get_option("smallAdOptions");
    $count = 1;

  10. esmi
    Forum Moderator
    Posted 3 years ago #

    Drop a copy of header.php into the WordPress pastebin and post the pastebin url here.

  11. mattlambeau
    Member
    Posted 3 years ago #

    hopefully this url gets you to it:

    http://wordpress.pastebin.com/WdknZ2QH

    Thanks

  12. esmi
    Forum Moderator
    Posted 3 years ago #

    It's not in that file. Can you put a copy of index.php in the pastebin?

  13. mattlambeau
    Member
    Posted 3 years ago #

    I am on the "editor" tab under the "appearance" section. I do not see a listing for the file index.php file.

    Am I in the wrong spot? If so, where should I look for it? I will keep looking in the mean time.

    thanks

  14. mattlambeau
    Member
    Posted 3 years ago #

    found it. here it is:

    http://wordpress.pastebin.com/PqnxQmA5

    thanks

  15. mattlambeau
    Member
    Posted 3 years ago #

    here is the topAd.php file as well:

    http://wordpress.pastebin.com/ir6R56tk

    thanks

  16. esmi
    Forum Moderator
    Posted 3 years ago #

    Can you try removing //include "topAd.php"; from index.php? It shouldn't be active because it's been commented out (//) but there's something else going on here. Also, check the theme's options in the Appearance sub-menu in case you have the ability to disable the top ad.

    If none of the above works, you may have to delve into the theme's functions.php file.

  17. mattlambeau
    Member
    Posted 3 years ago #

    sorry about this. I don't see an "options" under the "appearance" menu. Under the menu "appearance" there is Themes, Widgets, Menus, and Editor.

    Under the Socarates menu there is Socrates, Layout, Navigation, Styling, Header, Background, and Banner Exchange.

    Not sure where I find the theme's options.

    sorry about this

  18. esmi
    Forum Moderator
    Posted 3 years ago #

    Have a look under the Socrates menu.

  19. mattlambeau
    Member
    Posted 3 years ago #

    here are the items that I see under the menus:

    http://wordpress.pastebin.com/Zyw7HVt3

  20. mattlambeau
    Member
    Posted 3 years ago #

    wow I found it and it was a setting under Socrates, Layout, options. Nice job pal. I am eternally greatful!

  21. esmi
    Forum Moderator
    Posted 3 years ago #

    You're welcome. Glad you finally got it sorted. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic