Google Ad code throwing everything out

3 replies · opened Nov 19, 2016

GGavinBaylisNov 19, 2016

Hi there been trying to replace the code on the index-magazine-3.html

<div class="container clearfix">

			&lt;!-- Logo
			============================================= --&gt;
			&lt;div id="logo"&gt;


attachment


attachment

</div><!-- #logo end -->

	&lt;div class="top-advert"&gt;

attachment

	&lt;/div&gt;

		&lt;/div&gt;

With my Google ad code and it's throwing every thing out

<div class="top-advert">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-0982702027341467";
/* 728x90, created 10/02/11 */
google_ad_slot = "6932586118";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

Plus is it possible to have body class stretched and no transition ?

SSemicolon WebSTAFFNov 19, 2016

Hello,

Can you please provide us with a Live URL so that we can check out the exact issue and provide you with a more accurate solution for this. Thanks for your Patience.

Additionally, it is Definitely Possible to set the .stretched and .no-transition Classes to the <body>, simply replace your existing code with the following:

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

GGavinBaylisNov 19, 2016

It's when I do it locally on my machine taking the page code of file:///C:/Users/Gavin/Documents/webwork/CanvasSept16/Package-HTML/HTML/index-magazine-3.html and then inserting the google code

Came about after users said on an Ipad tablet when viewed landscape they only see half the page
http://www.anotherharddayattheoffice.co.uk/weathercam.html

SSemicolon WebSTAFFNov 20, 2016

Hello,

We have just checked out your Website and the issue is that the Available Width on the Header is not enough for the Logo (since it is large in size) and Advert area. You will need to either scale down the Logo or the Advert in order to fix this. Additionally, it is recommended to add the following code just after the </header> Tag:

This should definitely work fine. However, you will still need to scale down the Size of either the Logo or the Advert. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard