![]() |
WHen adding adsense code it distorts the design
Hey,
I have added adsense, both in the breadcrumb template and in the ad_global_below_navbar template but when I do it is making the navigation move into the header. Can anyone help with this please? I have left it in the ad_global_below_navbar template so you can see the problem. This is the code I am using: <p align="center"><script type="text/javascript"><!-- google_ad_client = "ca-pub-9222821431952789"; /* ICF - Hdr 728 */ google_ad_slot = "2541901540"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script></p> --------------- Added [DATE]1416998770[/DATE] at [TIME]1416998770[/TIME] --------------- P.s. I also did it without <p> tags |
Does it do the same thing on a unmodified default style?
|
Hey ozzy,
This is the only modification made on the default design, everything else is default. Thanks :) |
Do you have a link to the forum where this issue is happening?
|
<a href="http://www.deuceace.com" target="_blank">http://www.deuceace.com</a>
the homepage you have set on this site is not working you need to update it |
Sorry, I thought I included a link!
Http://www.InternationalChatForum.com - Just testing it out at the minute so its all default apart from this one change Thanks --------------- Added [DATE]1417010690[/DATE] at [TIME]1417010690[/TIME] --------------- Its a new install with a database from vb 3.8 - So everything is as standard |
the footer code is messed up revert it and the code you have above make sure you add it to the bottom of the template
default below for google ads ad_showthread_firstpost_start Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> |
Thanks for the reply, I was just trying if adsense worked on the footer, I have it reverted to the default again but its the same problem.
|
above post updated
|
Thanks for the reply, just wondering what the "AND CONTENT PAGE" in the code is for please.
I have reverted all templates so its back to complete default now. I would like to have adsense on the header and footer of all pages. Thanks for the help :) |
have you went to members area on vb and added it yet
|
Sorry, I meant from the code that you posted:
Code:
<vb:if condition="$adsense_pub_id AND CONTENT_PAGE"> Im pretty much just testing out 4, guess I have a lot more to learn :) |
You need to go to members area on vb add adsense then reupload the files
|
No problem, thanks again
--------------- Added [DATE]1417043680[/DATE] at [TIME]1417043680[/TIME] --------------- Can anyone tell me why there is google_ad_host? What is it used for? I searched and found a few unanswered threads asking the same on vb.com |
Anyone know if its needed? Not sure what its being used for as its not in the normal adsense code
|
You don't know if *what* is needed? You asked why there is a google_ad_host, but I have no idea what that is - a file? a template? a what?
|
Ok ....
google_ad_host is just an extra line in the javascript , you can read about it here: http://www.mydigitallife.info/google...venue-sharing/ I wouldn't worry about it unless you are dealing with what that articles says ..... |
All times are GMT. The time now is 07:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|