Adsense-block directly in the <body>, left to the Gallery?

slart

Joined: 2013-11-11
Posts: 112
Posted: Mon, 2014-02-03 18:11

Hello, I want to put a Google Adsense banner in the HTML body. The banner is to the left of the Gallery box be.
I have Gallery3 with the 'Theme Clean Canvas Dark' without 'fixed width'.
I have already tried just with a <div float:right>adsense-block</div> Set directly after the <body>, but then he pushes the content in the Gallery box down.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2014-02-03 20:11

Without seeing the results it is hard to tell. I suspect you are adding the <div> before the content of the Gallery <div> and suspect you want the adsense <div> inside the <div> that the theme renders.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Mon, 2014-02-03 21:20

I have write the adsesne <div> in the
/themes/clean_canvas/views/page.html.php
after
<body <?= $theme->body_attributes() ?>>
befor
<?= $theme->page_top() ?>
<? if (module::get_var("theme_clean_canvas", "wide")): ?>
<div id="doc3" class="yui-t5 g-view">
the first <div>.

The adsense is in the outside from the Gallery-Block, on the left side. In the Gallery-Block is under the header, in the main, as much empty space as the adsense is long in the main.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-02-04 00:45

I'm still not understanding without actually seeing the results. or a screenshot of what your after would help me understand.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Tue, 2014-02-04 09:58

Hi dave,

i use this html code in the /themes/clean_canvas/view/page.html.php:

Quote:
</head>

<body <?= $theme->body_attributes() ?>>

<div style="float:left">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Left Side -->
<ins class="adsbygoogle"
style="display:inline-block;width:160px;height:600px"
data-ad-client="ca-pub-xxxxxxxxxxxxxxx"
data-ad-slot="xxxxxxxxxxxxx"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

<?= $theme->page_top() ?>
<? if (module::get_var("theme_clean_canvas", "wide")): ?>
<div id="doc3" class="yui-t5 g-view">
<? else: ?>

please see in the attachment the result. (I have the description over the thumbs in the albums.)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2014-02-04 15:04

I would need to see the page to help more. I understand this issue now.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
slart

Joined: 2013-11-11
Posts: 112
Posted: Wed, 2014-07-30 11:49

Here is a solution: galleryproject.org/node/113197