Hi,
It’s possible to display two adsense ads in the same custom ad block?
I have:
<script async src=”http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”></script>
<!– novo adapt –>
<ins class=”adsbygoogle”
style=”display:block”
data-ad-client=”ca-pub-publishernumber”
data-ad-slot=”adslotnumber”
data-ad-format=”auto”></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
I’ve tried to input another one (different ad size, different slot) but it doens’t display.
Even tried using Div but nothing again.
Anyway to use this?
Thanks.
Hello,
I’m not sure what you mean, you can only have 1 ad inside an ad box in the theme panel. If you want the add to display twice on your website you will have to use another ad box to display it. You need to have 2 distinct elements for it. For example you will have to use 2 ad box elements on pages and set them to the desired ad spot or use this method for posts: https://forum.tagdiv.com/custom-ad-spots/
I hope this helps.
Thank you!
Hello
I need to know how i can put 2 ads in the same custom ad in my theme panel, like that:
http://www.ela-e-ele.com/tu-nao-sabes-o-que-perdeste-mas-eu-sei-o-que-ganhei/
tanks
Hello,
This type of modification will require a bit of altering of the theme files to pull it off. There is no option for it so we will have to hard-code it.
You will have to access td_module_single_base.php and edit these lines:
http://screencast.com/t/oJMOmRJVbU39
Simply replace them with these 2 lines (do not replace anything else just the 2 lines highlighted)
$buffy .= '<div class="td-post-small-box"><span>' . __td('<a rel="nofollow" href="' . esc_url($via_url) . '">' . 'VIA' . '</a>', TD_THEME_NAME) . '</span></div>';
and
$buffy .= '<div class="td-post-small-box"><span>' . __td('<a rel="nofollow" href="' . esc_url($source_url) . '">' . 'Source' . '</a>', TD_THEME_NAME) . '</span></div>';
As a result the source and via will become links: http://screencast.com/t/OxRf4Q9TnBx
Thank you!
-
This reply was modified 10 years by
Bogdan B..
Hi Bogdan,
Thanks for your answer.
I followed your instructions (Newspaper / includes / wp_booster) but didn’t got the expected result.
I changed the two lines (https://www.dropbox.com/s/ozteke7qs2udh2a/editor.png?dl=0) but it didn’t get right as your exemple (https://www.dropbox.com/s/luyma47ect1gf76/screen.jpg?dl=0).
It’s a CSS related issue or it’s more than that?
Thanks.