*

schilaci

  • **
  • 25 posts
adsense not showing on banner home middle
« on: June 13, 2022, 08:02:03 AM »
Everything else working fine but only the banner home top and banner home middle not showing the adsense

neighboursplate.com

*

MB Themes

Re: adsense not showing on banner home middle
« Reply #1 on: June 13, 2022, 08:06:22 AM »
I see code there, it just has height = 0px
Maybe it is issue of script, but you may try to change margin of parent element.
It may have impact on other banners.
Code: [Select]
body .banner-theme#banner-theme .myad .text {margin:0;}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

mwindey

  • *****
  • 478 posts
Re: adsense not showing on banner home middle
« Reply #2 on: June 13, 2022, 10:51:14 AM »
Banner code in main.php is not working with original code, there is no need to modify css file...:

Search for:

 
Code: [Select]
<?php if(eps_banner('home_top') !== false) { ?>
<div class="container banner-box<?php if(eps_is_demo()) { ?> is-demo<?php ?>"><div class="inside"><?php echo eps_banner('home_top'); ?></div></div>
<?php ?>

Easily change it to:
Code: [Select]
<div class="inside"><?php echo eps_banner('home_top'); ?></div>
Do the trick, same with banner middle
Code: [Select]
<?php if(eps_banner('home_middle') !== false) { ?>
<div class="container banner-box<?php if(eps_is_demo()) { ?> is-demo<?php ?>"><div class="inside"><?php echo eps_banner('home_middle'); ?></div></div>
<?php ?>

TO:
Code: [Select]
  <div class="inside"><?php echo eps_banner('home_middle'); ?></div>
Also footer banner..... but i am sure MB themes will correct this in next update....
« Last Edit: June 13, 2022, 10:56:35 AM by mwindey »

*

MB Themes

Re: adsense not showing on banner home middle
« Reply #3 on: June 13, 2022, 11:30:24 AM »
@mwindey
I think there could be just some property that is pushing height to be set to 0 and margin:auto could be one of them.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

schilaci

  • **
  • 25 posts
Re: adsense not showing on banner home middle
« Reply #4 on: June 13, 2022, 03:27:42 PM »
I have added body .banner-theme#banner-theme .myad .text {margin:0;} still no luck

*

MB Themes

Re: adsense not showing on banner home middle
« Reply #5 on: June 14, 2022, 09:53:58 AM »
Checked your site and did not see adsense generated anywhere, but it looks like height has been fixed.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots