Jump to content
thirty bees forum

How to remove no-follow from 24.000 links


Recommended Posts

Posted

I am currently working on the SEO. We found that a lot of links have a nofollow tag. Previously this was a good practice, now it leaks a lot of value.

We would like to fix this, but I am not sure how to do this... I cant find it in settings or a module...

 

Is this theme related or TB core related? Happens most on category pages for example... I hope someone can point me in the right direction?

Posted (edited)

Hello,


In your TB root with bash:

grep -rinHo "nofollow" themes/niara/

will ouput path:lineNumber:match

themes/niara/order-address-product-line.tpl:20:nofollow
themes/niara/order-address-product-line.tpl:24:nofollow
themes/niara/header.tpl:25:nofollow
themes/niara/header.tpl:25:nofollow
themes/niara/order-carrier-opc-advanced.tpl:327:nofollow
themes/niara/shopping-cart.tpl:339:nofollow
themes/niara/shopping-cart.tpl:356:nofollow
themes/niara/shopping-cart.tpl:370:nofollow
themes/niara/authentication-login.tpl:34:nofollow
themes/niara/order-carrier.tpl:353:nofollow
themes/niara/product-list-switcher.tpl:4:nofollow
themes/niara/product-list-switcher.tpl:8:nofollow
themes/niara/sitemap.tpl:31:nofollow
themes/niara/sitemap.tpl:32:nofollow
themes/niara/sitemap.tpl:43:nofollow
(...)

 

Edited by Pierrox15
wysiwyg is totally fucked with markdown
  • Like 1
Posted

Thanks, so in my case I have to go through all the files tpl in the map panda. And find the nofollow. But what to do then...?

<html{if isset($language_code) && $language_code} lang="{$language_code|escape:'html':'UTF-8'}"{/if}{if isset($isRtl) && $isRtl} dir="rtl"{/if}>
	<head>
		<meta charset="utf-8" />
		<title>{$meta_title|escape:'html':'UTF-8'}</title>
		<meta name="description" content="{if isset($meta_description) AND $meta_description}{$meta_description|escape:'html':'UTF-8'}{/if}" />
		{if isset($meta_keywords) AND $meta_keywords}
			<meta name="keywords" content="{$meta_keywords|escape:'html':'UTF-8'}" />
		{/if}
		<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />
		{if isset($sttheme.responsive) && $sttheme.responsive && (!$sttheme.enabled_version_swithing || $sttheme.version_switching==0)}
		<meta name="viewport" content="width=device-width, minimum-scale=0.25, maximum-scale=1.6, initial-scale=1.0" />
        {/if}

This seems to come from somewhere else.

While in product-list.tpl all nofollows can easily be removed?:

</a>
	                {assign var="fly_i" value=0}
                	{assign var="has_add_to_cart" value=0}
	                {capture name="pro_a_cart"}
	                	{if isset($use_view_more_instead) && $use_view_more_instead==1}
	                		<a class="view_button btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View more'}" rel="nofollow"><div><i class="icon-eye-2 icon-small icon_btn icon-mar-lr2"></i><span>{l s='View more'}</span></div></a>
	                	{else}
							{if ($product.id_product_attribute == 0 || (isset($add_prod_display) && ($add_prod_display == 1))) && $product.available_for_order && !isset($restricted_country_mode) && $product.customizable != 2 && !$PS_CATALOG_MODE}
		    					{if (!isset($product.customization_required) || !$product.customization_required) && ($product.allow_oosp || $product.quantity > 0)}
		        					{capture}add=1&amp;id_product={$product.id_product|intval}{if isset($product.id_product_attribute) && $product.id_product_attribute}&amp;ipa={$product.id_product_attribute|intval}{/if}{if isset($static_token)}&amp;token={$static_token}{/if}{/capture}
									<a class="ajax_add_to_cart_button btn btn-default" href="{$link->getPageLink('cart', true, NULL, $smarty.capture.default, false)|escape:'html':'UTF-8'}" rel="nofollow" title="{l s='Add to cart'}" data-id-product-attribute="{$product.id_product_attribute|intval}" data-id-product="{$product.id_product|intval}" data-minimal_quantity="{if isset($product.product_attribute_minimal_quantity) && $product.product_attribute_minimal_quantity >= 1}{$product.product_attribute_minimal_quantity|intval}{else}{$product.minimal_quantity|intval}{/if}"><div><i class="icon-glyph icon-small icon_btn icon-mar-lr2"></i><span>{l s='Add to cart'}</span></div></a>
                          			{assign var="has_add_to_cart" value=1}
									{if isset($use_view_more_instead) && $use_view_more_instead==2}
			                            <a class="view_button btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View more'}" rel="nofollow"><div><i class="icon-eye-2 icon-small icon_btn icon-mar-lr2"></i><span>{l s='View more'}</span></div></a>
			                            {if !$st_display_add_to_cart}{assign var="fly_i" value=$fly_i+1}{/if}
			                        {/if}					
		    					{else}
		                            <a class="view_button btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View'}" rel="nofollow"><div><i class="icon-eye-2 icon-small icon_btn icon-mar-lr2"></i><span>{l s='View'}</span></div></a>
		    					{/if}
		    				{/if}
	    				{/if}
	                {/capture}
	                {capture name="pro_a_compare"}
	                    {if !$flyout_comparison && isset($comparator_max_item) && $comparator_max_item}
							<a class="add_to_compare" href="{$product.link|escape:'html':'UTF-8'}" data-id-product="{$product.id_product}" rel="nofollow" data-product-cover="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small_default')|escape:'html':'UTF-8'}" data-product-name="{$product.name|escape:'html':'UTF-8'}" data-product-cover-width="{$smarty.capture.small_default_width}" data-product-cover-height="{$smarty.capture.small_default_height}" title="{l s='Add to compare'}"><div><i class="icon-adjust icon-small icon_btn icon-mar-lr2"></i><span>{l s='Add to compare'}</span></div></a>
	        			{/if} 
	                {/capture}

 

For example:

<a class="view_button btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View more'}" rel="nofollow"><div><i class="icon-eye-2 icon-small icon_btn icon-mar-lr2"></i><span>{l s='View more'}</span></div></a>

Becomes:

<a class="view_button btn btn-default" href="{$product.link|escape:'html':'UTF-8'}" title="{l s='View more'}" ><div><i class="icon-eye-2 icon-small icon_btn icon-mar-lr2"></i><span>{l s='View more'}</span></div></a>

 

Is that right?

Posted (edited)

If you want remove nofollow, yes!

So I'm not an SEO Expert and I can't confirm if it's a good idea. but it look a bit strange to have a nofollow on a product link...  I don't know why dev do that??

For me (and it's only my point of view), I will not use <a href=>  for the add to cart action.  It would be a form  or just a <button> with a bit of js to post action. In products list, i will only use 1 link  for 1 item, not more.

Hope it helps. 🙂

Edited by Pierrox15
Posted

Well, having no nofollow adds ranking to the page one links to, not the own page. If a couple of shops do this, the linked product page will have a higher ranking than the shop, which is usually not what merchants want.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...