Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Нет адапиции для мобильных


Recommended Posts

Не срабатывает адапиция масшибирования для мобильных устройств. Врогде как на секунду срабатывает, но потом всё равно сбрасывает до пк полноэкранной версии. через viewport resizer на пк все рилииет в огнях, подскажите, пожалуйси, в чем моя проблема?
flob.com.ua

Link to comment
Share on other sites


Спойлер
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<?php $page_direction == 'rtl' ? $direction = 'rtl' : ''; ?>
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="<?php echo $responsive ? 'mobile-responsive-off' : ''; ?>">
<!--<![endif]-->
<head>
	<meta charset="UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
	<meta http-equiv="X-RU-Compatible" content="IE=edge">
	<title><?php echo $title; ?></title>
	<base href="<?php echo $base; ?>" />
	<?php if ($description) { ?>
	<meta name="description" content="<?php echo $description; ?>" />
	<?php } ?>
	<?php if ($keywords) { ?>
	<meta name="keywords" content= "<?php echo $keywords; ?>" />
	<?php } ?>
	<?php foreach ($add_this_meta as $meta) { ?>
	<meta property="og:<?php echo $meta['property'] ?>" content="<?php echo $meta['content'] ?>" /> 
	<?php } ?>
	<!-- Fonts -->
	<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
	<link href="catalog/view/javascript/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
	<!-- END Fonts -->
	<link href="catalog/view/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />

	<?php if ($direction == 'rtl') { ?>
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/bootstrap-rtl.css" rel="stylesheet">
	<?php } ?>

	<link href="catalog/view/theme/<?php echo $theme_path; ?>/js/owl.carousel/assets/owl.carousel.css" rel="stylesheet">
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/material-design.css" rel="stylesheet">
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/js/fancybox/jquery.fancybox.css" rel="stylesheet">
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/photoswipe.css" rel="stylesheet">
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/stylesheet.css" rel="stylesheet">

	<?php if ($direction == 'rtl') { ?>
	<link href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/rtl.css" rel="stylesheet">
	<?php } ?>

	<?php if (isset($_COOKIE['tm_color_switcher_scheme']) && !$tm_color_switcher_permission) { ?>
	<link id="color_scheme" href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/color_schemes/<?php echo $_COOKIE['tm_color_switcher_scheme'] . '.css'; ?>" rel="stylesheet">
	<?php } elseif ($tm_color_switcher_scheme) { ?>
	<link id="color_scheme" href="catalog/view/theme/<?php echo $theme_path; ?>/stylesheet/color_schemes/<?php echo $tm_color_switcher_scheme . '.css'; ?>" rel="stylesheet">
	<?php } ?>

	<?php foreach ($styles as $style) { ?>
	<link href="<?php echo $style['href']; ?>" type="text/css" rel="<?php echo $style['rel']; ?>" media="<?php echo $style['media']; ?>" />
	<?php } ?>
	<?php foreach ($links as $link) { ?>
	<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
	<?php } ?>

	<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>
	<script src="catalog/view/javascript/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
	<script src="catalog/view/theme/<?php echo $theme_path; ?>/js/jquery.matchHeight-min.js" type="text/javascript"></script>
	<?php foreach ($scripts as $script) { ?>
	<script src="<?php echo $script; ?>" type="text/javascript"></script>
	<?php } ?>
	<?php foreach ($analytics as $analytic) { ?>
	<?php echo $analytic; ?>
	<?php } ?>
</head>
<body class="<?php echo $class; ?>">
	<p id="gl_path" class="hidden"><?php echo $theme_path; ?></p>
	<div id="page">
		<div id="page-preloader" class="visible"><span class="preloader"></span></div>
		<div class="ie-warning">
			<a href="http://windows.microsoft.com/en-us/internet-explorer/download-ie">
				<img src="catalog/view/theme/<?php echo $theme_path; ?>/image/warning_bar_0000_us.jpg" border="0" height="75" width="1170" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today."/>
			</a>
		</div>
		<div class="header_top_bg">
			<div class="container header_top_modules clearfix">
				<div class="header_left">
					<a href="<?php echo $account; ?>" class="header_register" title="<?php echo $text_account; ?>"><?php echo $text_account; ?>
						<?php if ($logged) { ?>								
						<a href="<?php echo $logout; ?>" class="account_logout"><?php echo $text_logout; ?></a>	
						<?php } ?>
					</a>
					<a href="<?php echo $register; ?>" class="header_login"><?php echo $text_register; ?></a>
				</div>

				<?php if ($header_top) { ?>
				<div class="header_modules"><?php echo $header_top; ?></div>
				<?php } ?>
				<?php echo $currency; ?>
				<?php echo $language; ?>			
			</div>
		</div>
		<header>
			<div class="container" style="position: relative;">
				<h1 id="logo" class="logo">
					<?php if ($logo) { ?>
					<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive"></a>
					<?php } else { ?>
					<a href="<?php echo $home; ?>"><?php echo $name; ?></a>
					<?php } ?>
				</h1>
				<?php if ($navigation) { ?>
				<div class="header_modules"><?php echo $navigation; ?></div>
				<?php } ?>				
				<div class="shopping-cart">
					<?php echo $cart; ?>
				</div>
				<?php echo $search; ?>
			</div>
		</header>

 

вот мой код header

Edited by LLlPAM888
не помогло
Link to comment
Share on other sites


помогло удноние 

'mobile-responsive-off'

это все или нужно как то переписать? Зачем шаблонщики офнули респонсив?

Edited by LLlPAM888
Link to comment
Share on other sites


4 минуты назад, LLlPAM888 сказал:

помогло удноние 

'mobile-responsive-off'

это все или нужно как то переписать?

 

Удалили или в настройках шаблона изменили? Судя по 

class="<?php echo $responsive ? 'mobile-responsive-off' : ''; ?>"

нужно в настройках изменить

  • +1 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.