There seems to be to much of a gap between my banner & top blocks of forum

Started by Jsizizzle, January 06, 2018, 10:13:46 PM

Previous topic - Next topic

Jsizizzle

My forum is at playersprogramu.com

There's up much of an empty space between my banner and top block/ body of my forum. When the page first loads you can see where the body of the page kinda goes down a bit for some reason. Can anyone help me figure out why?

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

drewactual

we should swap links... i too run a college sports site... see my sig.

your shoutbox has an element called

<div class="cat_bar shoutbox_bar">


find .cat_bar shoutbox_bar in your css (maybe in shoutbox css?) and get rid of the background images that look like little brackets in the top left and right corner, and the padding associated with it. 

Sir Osis of Liver

I see it now, was looking at homepage.  Looks like there's an empty portal block top and bottom.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

drewactual

ha!!! me too!!!

sp_main is the culprit..

are you actually using that block/table?

of not.... add to the bottom of the main (index) css of your theme:

#sp_main {display:none !important;}

it will hide it and adjust the gap... using display:hidden will hide it but NOT move the other contents up.. if you find purpose for that block/table, just remove the css entry.

Jsizizzle

I may use the header block for a banner. Would u still input the same code?

drewactual

if you're going to use it, then don't use that code as it will hide it and anything in it. 

if you DO use that block, it will be stacked under the other advertisement... it's your site to style how you want, but if it were mine i'd just hide the block and find another place to plop a banner.

Sir Osis of Liver

IIRC, you should be able to just deactivate a block to remove it.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

drewactual

oooohh... he's using simple portals or something like it, huh?

yup.

Jsizizzle

I put a banner there but there still seems to be a gap that forms as the page loads from above the Adsense ad and my site banner menu. Any ideas as to why?

drewactual

i see what you're trying to do now...

go to your google ad

replace:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Banner ad -->
<ins class="adsbygoogle"
     style="display:inline-block;width:728px;height:90px"
     data-ad-client="ca-pub-6936069796075613"
     data-ad-slot="8848485982"></ins>


with:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Banner ad -->
<ins class="adsbygoogle"
     style="width:728px;height:90px; margin: 0; padding:0;"
     data-ad-client="ca-pub-6936069796075613"
     data-ad-slot="8848485982"></ins>


and see what that does for you. 

edited to ask:  did you get rid of those brackets or am i crazy?  i don't see them anymore.

Advertisement: