Thread: Mobile devices

Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Mobile devices

    Hello all....

    Google bots just crawled my site and sent me an email identifying issues regarding the use of mobile devices. One of them was in regards to setting viewport.....with this reference to several pages; "Add the viewport meta tag to your pages."

    Can someone tell me what that "meta tag" should contain and where should it go? Main/index page only or on ALL pages....?

    Thanks

    MM

  2. #2
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Mobile devices

    Putting it in the \includes\templates\YOUR_TEMPLATE_NAME\common\html_header.php file will display the meta tag on all your pages.

    For more information on the different recommendations for configurations visit google developers PageSpeed Insights

    Quote Originally Posted by Music Man View Post
    Hello all....

    Google bots just crawled my site and sent me an email identifying issues regarding the use of mobile devices. One of them was in regards to setting viewport.....with this reference to several pages; "Add the viewport meta tag to your pages."

    Can someone tell me what that "meta tag" should contain and where should it go? Main/index page only or on ALL pages....?

    Thanks

    MM

  3. #3
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Mobile devices

    Quote Originally Posted by rbarbour View Post
    Putting it in the \includes\templates\YOUR_TEMPLATE_NAME\common\html_header.php file will display the meta tag on all your pages.
    Thanks for the response.

    Now I have the file downloaded and opened it.....Could you give me a suggestion as to where in that file to drop the "<meta name=viewport content="width=device-width, initial-scale=1">" to make it work properly? That file is roughly 106 lines of code and I'm not that versed on where it would work best....

    Thanks

    MM

  4. #4
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Mobile devices

    Place it below the rest of the meta name tags

    Quote Originally Posted by Music Man View Post
    Thanks for the response.

    Now I have the file downloaded and opened it.....Could you give me a suggestion as to where in that file to drop the "<meta name=viewport content="width=device-width, initial-scale=1">" to make it work properly? That file is roughly 106 lines of code and I'm not that versed on where it would work best....

    Thanks

    MM

  5. #5
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Mobile devices

    Quote Originally Posted by rbarbour View Post
    Place it below the rest of the meta name tags
    I don't see any other references to "meta name" in that file for the template I am using........ When you posted it got me to wondering if the template that I use might have not used meta name references so I went back to the default template and looked at the header file for that template and the meta tag references are there.

    Maybe I can figure out....but looking at the original where I should place it in the current template file that I use..

  6. #6
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Mobile devices

    OK....I got myself all confused....

    There is NO html_header.php file in my custom template.....there is one in the default template....

    The only thing in the \includes\templates\YOUR_TEMPLATE_NAME\common\ folder are 2 files: tpl_footer.php and tpl_header.php.

    I was looking in the tpl_header.php for the meta tag....and there are none....

    Sooooooo is ZC using the default html_header.php? Or bypassing that altogether? Can I add the html_header.php file to my template custom folder and get it to work?

  7. #7
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Mobile devices

    UPDATE: OK I did some experiments and found that ZC was using the default "html_header.php " file....instead of 1 in the working template folder.....

    I added the meta tag to the default "html_header.php " file.....it seems to work so I guess I will wait until the Google 'bug' crawls my site again to see if it likes it better now.....

    Thanks for the help and for listening.....

  8. #8
    Join Date
    Feb 2010
    Posts
    2,159
    Plugin Contributions
    17

    Default Re: Mobile devices

    Copy the default html_header.php file to the \includes\templates\YOUR_TEMPLATE_NAME\common\ folder

    and

    Restore the default html_header.php file

    All changes should be in the custom templates folder, otherwise upgrading will be a nightmare

    Quote Originally Posted by Music Man View Post
    UPDATE: OK I did some experiments and found that ZC was using the default "html_header.php " file....instead of 1 in the working template folder.....

    I added the meta tag to the default "html_header.php " file.....it seems to work so I guess I will wait until the Google 'bug' crawls my site again to see if it likes it better now.....

    Thanks for the help and for listening.....

  9. #9
    Join Date
    Apr 2009
    Posts
    188
    Plugin Contributions
    0

    Default Re: Mobile devices

    Quote Originally Posted by rbarbour View Post
    Copy the default html_header.php file to the \includes\templates\YOUR_TEMPLATE_NAME\common\ folder

    and

    Restore the default html_header.php file

    All changes should be in the custom templates folder, otherwise upgrading will be a nightmare
    Ahhhhhh, thanks for the reminder....I almost forgot that little pearl of wisdom.....It's so easy to make that mistake that is so painful to correct later...

 

 

Similar Threads

  1. Cant see menu bar on mobile devices
    By michaeldoddkinsella in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 4 Aug 2014, 01:44 PM
  2. v151 need help with buttons on mobile devices
    By simpledomaining in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 24 Jul 2014, 05:01 PM
  3. Zen on Mobile devices - anything available?
    By ardhill in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 12 Aug 2010, 01:32 PM
  4. Mobile Devices?
    By technologystorm in forum General Questions
    Replies: 6
    Last Post: 25 Apr 2007, 02:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg