Author Topic: Vituremart Error Mobile index Google (.html?tmpl=component)  (Read 471 times)

nguyenhoang999

  • Beginner
  • *
  • Posts: 7
    • web seo google
Vituremart Error Mobile index Google (.html?tmpl=component)
« on: November 16, 2018, 02:25:08 am »
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

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

nguyenhoang999

  • Beginner
  • *
  • Posts: 7
    • web seo google
Re: Vituremart Error Mobile index Google (.html?tmpl=component)
« Reply #1 on: November 16, 2018, 08:25:00 am »
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
webseogoogle.com