0
Welcome Guest! Login
0 items Join Now

Gantry 5 - Add Google Site Verification Meta Tag

    • lydianp18's Avatar
    • lydianp18
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 1

    Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • In the old Gantry this was easy, just add it the index file inbetween the head tags. But how do I do this in Gantry 5?

      Lydia
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22268
    • Thanks: 3224
    • messin' with stuff

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • docs.gantry.org/gantry5/advanced/customi...e-files#engine-files


      /media/gantry5/engines/nucleus/templates/page_head.html.twig

      copy page_head.html.twig to:

      /templates/template_name/custom/engine/

      in: /templates/template_name/custom/engine/page_head.html.twig

      stick your google meta tag either just after the <head> (line 16 in Callisto) or just before the </head>


      //untested by me... but I think that should work
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • lydianp18's Avatar
    • lydianp18
    • Jr. Rocketeer
    • Posts: 27
    • Thanks: 1

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • Actually, it doesn't work...

      The original file that needs changed is:

      media/gantry5/engines/nucleus/templates/page_head.html.twig

      I've tried every combination in templates/rt_callisto/custom/ that I can think of, including:

      templates/rt_callisto/custom/engines/templates/page_head.html.twig (according to the gantry instructions - this should be right?)
      templates/rt_callisto/custom/engines/nucleus/templates/page_head.html.twig
      templates/rt_callisto/custom/engines/templates/partials/page_head.html.twig
      templates/rt_callisto/custom/engines/twig/page_head.html.twig
      templates/rt_callisto/custom/engines/nucleus/twig/page_head.html.twig
      templates/rt_callisto/custom/engines/twig/partials/page_head.html.twig

      The site doesn't pick up any of them...
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22268
    • Thanks: 3224
    • messin' with stuff

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • did you try

      templates/rt_callisto/custom/engines/page_head.html.twig
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:
    • Brian Shea's Avatar
    • Brian Shea
    • Sr. Rocketeer
    • Posts: 176
    • Thanks: 18
    • Web Management, Server Admin, Google Apps Service Provider

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • Dan Walker's Avatar
    • Dan Walker
    • Elite Rocketeer
    • Posts: 529
    • Thanks: 21
    • Designer/Developer

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • If you follow the documentation exactly, it works. The correct path is: templates/rt_callisto/custom/engine/templates/page_head.html.twig
      Note the singular "engine" as well as the necessity for the folder name within the engine folder.
    • Last Edit: 9 years 10 months ago by Dan Walker.
    • The following users have thanked you: Matt

    • Dan Walker - Web Designer & Developer @ Top Webs Network
      Custom Joomla & Wordpress Websites
    • Dan Walker's Avatar
    • Dan Walker
    • Elite Rocketeer
    • Posts: 529
    • Thanks: 21
    • Designer/Developer

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • However, I think this is a bug in G5, as other documentation requires the custom/engines folder. This should be standardized, one way or the other.
    • Dan Walker - Web Designer & Developer @ Top Webs Network
      Custom Joomla & Wordpress Websites
    • Matt's Avatar
    • Matt
    • Preeminent Rocketeer
    • Posts: 22268
    • Thanks: 3224
    • messin' with stuff

    Re: Gantry 5 - Add Google Site Verification Meta Tag

    Posted 9 years 10 months ago
    • This message contains only secure information that is visible to Matt, moderators and administrators
    • SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT :woohoo:

Time to create page: 0.087 seconds