Vituremart Error Mobile index Google (.html?tmpl=component)

Started by nguyenhoang999, November 16, 2018, 02:25:08 AM

Previous topic - Next topic

nguyenhoang999

Hey all, i have problem with google website tools : mobile first index
IN webmaster google report: Mobile Usability
Error   Text too small to read
Error   Viewport not set
Error   Clickable elements too close together

many link:....html?tmpl=component
...?tmpl=component
....?tmpl=component&print=1
....keyword=&tmpl=component
and PDF link product ..

I don't know fix for google index no error

Examble link

Quotehttps://xetaihyundaihd.com/san-pham/tera-190/results,25-28.html?keyword=&tmpl=component

nguyenhoang999

#1
i have fix problem:

Adding ?tmpl=component to your URL will render only the content position, without any of the modules.

You can also customize this view if you need to add/remove CSS styles, JavaScript or other modifications. Just edit the file templates/YOURTEMPLATE/component.php..

Example:

Quote<?php
   /*------------------------------------------------------------------------
# author    webseogoogle.com
# copyright © 2013 webseogoogle.com. All rights reserved.
# @license  http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Website   http://www .webseogoogle.com
-------------------------------------------------------------------------*/
defined('_JEXEC') or die;
$app   = JFactory::getApplication();
$doc   = JFactory::getDocument();
// Add Stylesheets
$doc->addStyleSheet('templates/'.$this->template.'/css/template.css');
?>
<!DOCTYPE html>
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>">
<head>
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<jdoc:include type="head" />
<!--[if lt IE 9]>
   <script src="<?php echo $this->baseurl ?>/media/jui/js/html5.js"></script>
<![endif]-->
</head>
<body id="print">
  <div id="overall">
    <jdoc:include type="message" />
    <jdoc:include type="component" />
  </div>
</body>
</html>

I have fix ít, thanks you