Simon Brady
asked 6 years ago

Hi,
My site’s using DW Focus and at the moment, the ads in the header widget don’t show up in the mobile version of the page and they disappear when the desktop browser window is resized.
Is it possible to prevent this from happening, e.g. by preventing the theme from being responsive, or by having them drop below the logo when the page is resized rather than disappearing completely?
If not, could you please suggest an alternative way to ensure they are displayed on the page in mobile view or a reduced-size window?
 
Thanks

2 Answers
DominicStaff
answered 6 years ago

At the moment, we have hidden the Ads in the mobile version. If you want to show the Ads, you can open the header.php file then find the line 26 to 39.
Replace the following code:

<div class="row hidden-xs hidden-sm">
 <div class="col-md-4">
 <?php $site_logo = dw_focus_get_logo_option(); ?>
 <?php if ( $site_logo ) : ?>
 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="site-logo"><img src="<?php echo esc_url( $site_logo ); ?>" title="<?php bloginfo( 'name' ); ?>"></a>
 <?php else : ?>
 <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
 <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
 <?php endif; ?>
 </div>
 <?php if ( is_active_sidebar( 'dw_focus_header' ) ) : ?>
 <div id="header-widgets" class="col-md-8"><?php dynamic_sidebar( 'dw_focus_header' ); ?></div>
 <?php endif; ?>
 </div>

With new code:

<div class="row">
 <div class="col-md-4">
 <?php $site_logo = dw_focus_get_logo_option(); ?>
 <?php if ( $site_logo ) : ?>
 <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home" class="site-logo hidden-xs hidden-sm"><img src="<?php echo esc_url( $site_logo ); ?>" title="<?php bloginfo( 'name' ); ?>"></a>
 <?php else : ?>
 <h1 class="site-title hidden-xs hidden-sm"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
 <h2 class="site-description hidden-xs hidden-sm"><?php bloginfo( 'description' ); ?></h2>
 <?php endif; ?>
 </div>
 <?php if ( is_active_sidebar( 'dw_focus_header' ) ) : ?>
 <div id="header-widgets" class="col-md-8"><?php dynamic_sidebar( 'dw_focus_header' ); ?></div>
 <?php endif; ?>
 </div>
Simon Brady
answered 6 years ago

many thanks for the quick response

Dominic Staff
replied 6 years ago

If you still face their issue, you can send me username & password of your site for further checking.

Powered by DW Question & Answer Pro