0
Welcome Guest! Login
0 items Join Now

Disable Gantry Page Titles

  • Disable Gantry Page Titles

    Posted 13 years 3 months ago
    • Wordpress Version 3.2.1
      Gantry Version 1.21

      I have installed a plugin to write custom Page <Title> as the Gantry Custom Page <Title> feature is simply not robust enough for proper SEO. All is working well with the plugin and I am not requesting help with any 3rd party software. The plugin "SEO Title Tag" is properly writing the <TITLE> for me in all pages.

      However, Gantry is also continuing to write <TITLE> tags using the "Page Name" so all pages have 2 <TITLE> tags in the HTML.

      Duplicating the Page Name in the <TITLE> is not effective and I've not interested in using All-in-One or YOAST. I simply want to know what should be modified within the Gantry Framework to stop the Gantry plugin from writing <TITLE> at all. Any help would be appreciated.
  • Re: Disable Gantry Page Titles

    Posted 13 years 3 months ago
    • Any help would be appreciated.
  • Re: Disable Gantry Page Titles

    Posted 13 years 3 months ago
    • Bump! Seriously!?
    • Tim Berneman's Avatar
    • Tim Berneman
    • Elite Rocketeer
    • Posts: 878
    • Thanks: 0
    • Website Manager

    Re: Disable Gantry Page Titles

    Posted 13 years 3 months ago
    • You can try to copy the title.php from wp-content/plugins/gantry/gizmos/ to wp-content/themes/your-theme/gizmos/, edit it and change :
      function isEnabled(){
        return true;
      }
      to :
      function isEnabled(){
        return false;
      }
      This will disable the title gizmo entirely.
    • Tim Berneman
  • Re: Disable Gantry Page Titles

    Posted 13 years 3 months ago
    • Thank you again Tim!

      I am familiar with some PHP and have followed the instructions to the best of my ability.

      I have copied title.php from:
      wp-content/plugins/gantry/gizmos/
      to:
      wp-content/themes/rt_zephyr_wp/gizmos/

      I have made the following edits from:
       
      class GantryGizmoTitle extends GantryGizmo {
       
          var $_name = 'title';
       
          function isEnabled(){
              return true;
          }
       

      to:
       
      class GantryGizmoTitle extends GantryGizmo {
       
          var $_name = 'title';
       
          function isEnabled(){
              return false;
          }
       

      The system is STILL printing 2 <TITLE> tags in the code.
    • geoklix's Avatar
    • geoklix
    • Newbie
    • Posts: 6
    • Thanks: 0

    Re: Disable Gantry Page Titles

    Posted 12 years 10 months ago
    • thank you guys, the first method worked like a charm, thank you!

Time to create page: 0.070 seconds