Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
padding for adsense
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 8:55 am

is there any way to expand the header and footer height? I use responsive adsense code and when it sens the big 970 banner, the bottom of the ad is covered a little bit

adsense.jpgImage Enlarger

 thank you

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 6, 2014 - 9:14 am

How is the ad inserted into the page? It looks like it is inside the forum template area - is that correct?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 9:14 am

All the information in the header is contained within .spHeadContainer, but looking at the screenshot it looks to me like the advert is inside this div.

I doubt that height: will help, it has no rules as it is just a holder. Adding height or padding to the container doesn't change the way the elements within appear. I think the only thing that would help is changing the height of the advert div itself, but that looks tricky!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 6, 2014 - 9:17 am

Thuis was why I was asking hoe and where it is inserted.

If it is within the forum spHead template then simply adding a call to sp_InsertBreak(); after the ad code should do the trick.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 9:21 am

I have it in the top of the header.php right after this

# Start Template

# Mandatory call to sp_HeaderBegin() - available to custom code
# ----------------------------------------------------------------------

this is right after the code

sp_InsertBreak();
sp_HeaderBegin();

so should I just add a couple more insert breaks?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 6, 2014 - 9:29 am

Well in normal circumstances one break would do it so there must be something a little odd about the way the ad code is injected.

But you can add extra spece to the call like this:

sp_InsertBreak('spacer=15px');

for example which will create a 15px high break. Change the value to suit. Give that try.

andy-signature.png
YELLOW
SWORDFISH
Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 9:35 am

hmm, must be something with the adsense code, I increased it to 50 and the header got much bigger but the bottom of the code is still hidden

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 12:45 pm

do you have a link to it?

Avatar
kvr28
Member
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 6:52 pm

I resolved it, kind of, I switched the adsense code to display ads only, they integrate well, the text ones not so much

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 6, 2014 - 11:16 pm

okay, thanks for the update...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625