Hello, how can i remove or disable mobile layout? i want just display desktop.
Thank you
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/desktop.small.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_theme_width', '1230'); ?>px)" />
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/tablet.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_tablet_width', '1030'); ?>px)" />
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/tablet.small.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_small_tablet_width', '820'); ?>px)" />
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/mobile.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_mobile_width', '580'); ?>px)" />
Cyberek wrote:Please edit file:
/wp-content/themes/News/layouts/responsive_css.php
and remove those lines:
- Code: Select all
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/desktop.small.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_theme_width', '1230'); ?>px)" />
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/tablet.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_tablet_width', '1030'); ?>px)" />
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/tablet.small.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_small_tablet_width', '820'); ?>px)" />
<link rel="stylesheet" href="<?php echo gavern_file_uri('css/mobile.css'); ?>" media="(max-width: <?php echo get_option($tpl->name . '_mobile_width', '580'); ?>px)" />
<?php
// check the dependencies for the desktop.small.css file
if(get_option($tpl->name . "_shortcodes3_state", 'Y') == 'Y') {
wp_enqueue_style('gavern-desktop-small', gavern_file_uri('css/desktop.small.css'), array('gavern-shortcodes-template'), false, '(max-width: '. get_option($tpl->name . '_theme_width', '1230') . 'px)');
} elseif(get_option($tpl->name . "_shortcodes2_state", 'Y') == 'Y') {
wp_enqueue_style('gavern-desktop-small', gavern_file_uri('css/desktop.small.css'), array('gavern-shortcodes-elements'), false, '(max-width: '. get_option($tpl->name . '_theme_width', '1230') . 'px)');
} elseif(get_option($tpl->name . "_shortcodes1_state", 'Y') == 'Y') {
wp_enqueue_style('gavern-desktop-small', gavern_file_uri('css/desktop.small.css'), array('gavern-shortcodes-typography'), false, '(max-width: '. get_option($tpl->name . '_theme_width', '1230') . 'px)');
} else {
wp_enqueue_style('gavern-desktop-small', gavern_file_uri('css/desktop.small.css'), array('gavern-extensions'), false, '(max-width: '. get_option($tpl->name . '__theme_width', '1230') . 'px)');
}
// tablet.css is always loaded after the desktop.small.css file
wp_enqueue_style('gavern-tablet', gavern_file_uri('css/tablet.css'), array('gavern-extensions'), false, '(max-width: '. get_option($tpl->name . '_tablet_width', '1030') . 'px)');
// tablet.small.css is always loaded after the tablet.css file
wp_enqueue_style('gavern-tablet-small', gavern_file_uri('css/tablet.small.css'), array('gavern-tablet'), false, '(max-width: '. get_option($tpl->name . '_small_tablet_width', '820') . 'px)');
// mobile.css is always loaded after the tablet.small.css file
wp_enqueue_style('gavern-mobile', gavern_file_uri('css/mobile.css'), array('gavern-tablet-small'), false, '(max-width: '. get_option($tpl->name . '_mobile_width', '580') . 'px)');