WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How do I remove banner space from the top of the page?

[Resolved] How do I remove banner space from the top of the page?

  • mattlambeau

    @mattlambeau

    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

Viewing 15 replies - 1 through 15 (of 20 total)
  • esmi

    @esmi

    Forum Moderator

    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.

    mattlambeau

    @mattlambeau

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

    esmi

    @esmi

    Forum Moderator

    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>
    mattlambeau

    @mattlambeau

    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?

    esmi

    @esmi

    Forum Moderator

    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.

    mattlambeau

    @mattlambeau

    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

    mattlambeau

    @mattlambeau

    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);

    mattlambeau

    @mattlambeau

    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;

    esmi

    @esmi

    Forum Moderator

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

    mattlambeau

    @mattlambeau

    hopefully this url gets you to it:

    http://wordpress.pastebin.com/WdknZ2QH

    Thanks

    esmi

    @esmi

    Forum Moderator

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

    mattlambeau

    @mattlambeau

    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

    mattlambeau

    @mattlambeau

    found it. here it is:

    http://wordpress.pastebin.com/PqnxQmA5

    thanks

    mattlambeau

    @mattlambeau

    here is the topAd.php file as well:

    http://wordpress.pastebin.com/ir6R56tk

    thanks

    esmi

    @esmi

    Forum Moderator

    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.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘[Resolved] How do I remove banner space from the top of the page?’ is closed to new replies.