0
Welcome Guest! Login
0 items Join Now

Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    • RyGuy's Avatar
    • RyGuy
    • Rocketeer
    • Posts: 93
    • Thanks: 0

    Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 14 years 3 months ago
    • Just wanted to throw this out there as a suggestion. I've seen duplicate URL's pop up in Google Webmaster Tools because of the queries that are added to URL's by the Font Sizer and Reset Settings features... ?font-size=smaller, ?font-size=larger, and ?reset-settings.

      These duplicates could be avoided if a rel="nofollow" was added to these links in the Gantry code. :idea:
  • Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 13 years 5 months ago
    • You suggestion could be very useful.
      May you explain where I should add those rel="nofollow"?

      I hope you can help me.
      Thanks in advance
      Francesco
    • Cliff Pfeifer's Avatar
    • Cliff Pfeifer
    • Preeminent Rocketeer
    • Posts: 8444
    • Thanks: 20
    • Website Developer

    Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 13 years 5 months ago
    • That's interesting, I've never heard of that, it makes sense but I've never seen it.

      The best way would be to remove all of the template features and presets you're not using. If you're going to get into the code you might as well just take it out. All of those links / pages are generated dynamically based on the features and presets built into the template you are using, not sure if you could even apply a nofollow to them. It's just part of using a template that is built for ultimate configuration, there are a ton of extra things you may not need.

      Gantry is pretty flexible, you can check out the documentation and work backwards to remove everything you are not using and that will get rid of the extra pages. Hope that helps.
    • The difficult we do immediately, the impossible takes a little longer.
    • RyGuy's Avatar
    • RyGuy
    • Rocketeer
    • Posts: 93
    • Thanks: 0

    Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 13 years 4 months ago
    • The nofollow attribute is applied on a per-link basis, not per-page, so you could definitely apply it in the code. For the font sizer, this file would need to be edited: /components/com_gantry/features/fontsizer.php

      Change this...
      <div id="rt-buttons">
                          <a href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl(array('reset-settings')),array('font-size'=>'smaller'))); ?>" title="<?php echo JText::_('DEC_FONT_SIZE'); ?>" class="small"><span class="button"></span></a>
                          <a href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl(array('reset-settings')),array('font-size'=>'larger'))); ?>" title="<?php echo JText::_('INC_FONT_SIZE'); ?>" class="large"><span class="button"></span></a>
                      </div>
       

      To this:
      <div id="rt-buttons">
                          <a rel="nofollow" href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl(array('reset-settings')),array('font-size'=>'smaller'))); ?>" title="<?php echo JText::_('DEC_FONT_SIZE'); ?>" class="small"><span class="button"></span></a>
                          <a rel="nofollow" href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl(array('reset-settings')),array('font-size'=>'larger'))); ?>" title="<?php echo JText::_('INC_FONT_SIZE'); ?>" class="large"><span class="button"></span></a>
                      </div>
       

      Same goes for the reset settings button: /components/com_gantry/features/resetsettings.php

      Change this...
       
      <span  id="gantry-resetsettings">
                  [ <a href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl($gantry->_setbyurl),array('reset-settings'=>''))); ?>"><?php echo $this->get('text'); ?></a> ]
              </span>
       

      To this....
       
      <span  id="gantry-resetsettings">
                  [ <a rel="nofollow" href="<?php echo JROUTE::_($gantry->addQueryStringParams($gantry->getCurrentUrl($gantry->_setbyurl),array('reset-settings'=>''))); ?>"><?php echo $this->get('text'); ?></a> ]
              </span>
       

      That would keep Google from crawling these pages from internal links, which for the most part, should eliminate the problem of duplicate content / URL's created by these Gantry features.

      Implementing a canonical tag would completely take care of the problem, but that is way outside the scope of Gantry. :mrgreen:
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 13 years 4 months ago
    • good catch, i'll add this to the tracker
    • RyGuy's Avatar
    • RyGuy
    • Rocketeer
    • Posts: 93
    • Thanks: 0

    Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 13 years 4 months ago
    • Cool, thanks Andy!
  • Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 12 years 6 months ago
    • has this been updated/fixed in the latest gantry? i downloaded the latest version and did not see any reference to no follow in fontsizer.

      Thanks

      Tom
    • genegun's Avatar
    • genegun
    • Rocketeer
    • Posts: 56
    • Thanks: 0

    Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 12 years 4 months ago
    • Not it hasn't been fixed.
      I have seen that issue mentioned a number of times in different parts of the forum. When the support team bothered answering (i.e. rarely), they said it would be tracked. Now, I am still getting duplicate URLs due to the font sizer although I am using the latest Gantry and Clarion updates. The font sizer is disabled but still returns pages. Why is this problem not being fixed??

      I am seeing more and more of these unanswered/unsorted issues lately (like the issue with mobile templates in Clarion). I have been a RT customer for a good while but the increasingly poor support will probably make me not renew my subscription next time. :cry:
  • Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 12 years 3 months ago
    • I am also having this problem with Ionosphere theme and granty. How can I fix this?
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: Improve SEO: NoFollow the Reset Settings & Font-Sizer Links

    Posted 12 years 3 months ago
    • We've had this ticket open for some time now. We're cleaning up tickets and this will be added shortly. NOTE: this will only be added in the core of gantry, so any template that has an override of this feature, you'll have to add the rel="nofollow" to those links yourselves.

Time to create page: 0.056 seconds