*

Anonymous

  • ****
  • 200 posts
disable banner in responsive view
« on: January 29, 2018, 07:20:24 AM »
 $text .= '<div class="ad-banner b-class-'. $banner['b_id'] .'" style="float:left;clear:both;';


how to implement  style="float:left;clear:both;'; display- none   in responsive view, less than 768 pixel
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: disable banner in responsive view
« Reply #1 on: January 29, 2018, 09:26:57 AM »
@Anonymous
Use <style></style> or update your theme files.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ****
  • 200 posts
Re: disable banner in responsive view
« Reply #2 on: January 29, 2018, 04:17:11 PM »
thats index.php file,
Code: [Select]
  $store_id = $banner['b_id'];
  $text .= '<div class="ad-banner b-class-'. $banner['b_id'] .'" style="float:left;clear:both;';[/b]
  if($banner['b_size_x'] <> '') { $text .= 'width:' . $banner['b_size_x'] . ';'; }
  if($banner['b_size_y'] <> '') { $text .= 'height:' . $banner['b_size_y'] . ';'; }
  $text .= '">';

banner for desktop view doesnt fits in responsive  view, therefore, am trying to disable banner in responsive view, below 768 pixel- display none,

Quote
Use <style></style>
  if i puts display none in index.php then for both view, it will get disable,  its complicated to put  php media condition.  ???

"
Code: [Select]
ad-banner b-class-1
Code: [Select]
"ad-banner b-class-2 
Innovation is change that unlocks new value  ;)