Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Search Engines / Robots meta tag

Robots meta tag

Locked
This thread is locked. New replies are disabled.
28 Oct 2008, 10:08 AM
#1
chrisssy avatar

chrisssy

New Zenner

Join Date:
Oct 2008
Posts:
1
Plugin Contributions:
0

Post #1 by chrisssy

I know this question has been asked loads of times in the past on this forum but I haven’t understood exactly what i need to do to fix the problem:

There is a ‘meta tag’ ‘<meta name="robots" content="noindex, nofollow" />’ on most of the pages and I don’t where or how to change it?

I’ve looked in the ‘meta_tags.php’ file and the ‘init_add_crumb.php’ but haven’t fixed the problem!

Can anyone explain in simple terms how to remove this?

TIA

28 Oct 2008, 10:42 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

What is your setting for Admin->Configuration->Layout Settings->Categories - Always Show on Main Page? If it's "1", does changing it to "0" solve the problem?
What is your URL?
What version of Zen Cart?
If you're using v1.3.8, have you applied this fix? http://www.zen-cart.com/forum/showpost.php?p=498927&postcount=12
What addons and/or templates do you have installed?

The noindex,nofollow is "supposed to" show up on several pages related to users/accounts/checkout/etc, but not for categories/products/etc.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Oct 2008, 1:11 PM
#3
dlaitila avatar

dlaitila

New Zenner

Join Date:
Sep 2005
Posts:
57
Plugin Contributions:
0

Post #3 by dlaitila

Here is my url.... http://www.neilharriphotos.com. I have applied the fix for the noindex/nofollow problem as describe here. http://www.zen-cart.com/forum/showpost.php?postcount=4&p=483513, but it didn't fix it. Under the admin > layout settings I tried changing the Categories - Always Show on Main Page
Always Show Categories on Main Page to 1. But that didn't work either. Whether it is set to 1 or 0 doesn't matter.

I have zen-cart version 1.3.8 on my site. Google has indexed my site in its Webmaster Tools and Google Analytics works, but Google does not show my site in a Google search. The site is about a month old. Please help me figure this out. Thank you so much.

30 Oct 2008, 1:46 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #4 by website_rob

Just happened to be viewing this thread whilst doing a new install -- killing time while everything uploaded.

It is true that a default Classic Green Template will not have this problem but, as the Comstock Template is the desired Template in my case, as soon as I switched Templates I see this line:

<meta name="robots" content="noindex, nofollow" />

It shows on pretty much any page and research tells me the problem is here:

includes/templates/comstock/common/tpl_header.php

In the Comstock Template, the above file does a rewrite of not only the 'head' coding but also the 'tpl_main_page.php' for some reason; instead of restricting code to just the header portion as the default file does. Not sure why all this rewriting is being done and more investigating required.

Anyway, to fix the problem one could probably just remove:

<meta name="robots" content="noindex, nofollow" />

from the 'tpl_header.php' file within the Template they are using.

The learning is in the doing.

Potent Products

30 Oct 2008, 2:28 PM
#5
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,762
Plugin Contributions:
0

Post #5 by Kim

Please make the template author aware of the problem. Thanks.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

30 Oct 2008, 3:03 PM
#6
dlaitila avatar

dlaitila

New Zenner

Join Date:
Sep 2005
Posts:
57
Plugin Contributions:
0

Post #6 by dlaitila

Website Rob:

Just happened to be viewing this thread whilst doing a new install -- killing time while everything uploaded.

It is true that a default Classic Green Template will not have this problem but, as the Comstock Template is the desired Template in my case, as soon as I switched Templates I see this line:

<meta name="robots" content="noindex, nofollow" />

It shows on pretty much any page and research tells me the problem is here:

includes/templates/comstock/common/tpl_header.php

In the Comstock Template, the above file does a rewrite of not only the 'head' coding but also the 'tpl_main_page.php' for some reason; instead of restricting code to just the header portion as the default file does. Not sure why all this rewriting is being done and more investigating required.

Anyway, to fix the problem one could probably just remove:

<meta name="robots" content="noindex, nofollow" />

from the 'tpl_header.php' file within the Template they are using.

I found it in includes/templates/template_default/common/html_header.php and removed this line...
<meta name="robots" content="noindex, nofollow" />

I am using the Mystic Template. Do you think I did the right thing to fix the problem. At least it is not showing up now on my main page anymore.

30 Oct 2008, 3:13 PM
#7
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #7 by website_rob

I was incorrect in my previous file name and 'html_header.php' is the correct file to edit.

In the Comstock Template they tried to comment out the 'noindex, nofollow' but it was done incorrectly. Perhaps that is the case within your file as well?

<?php **//**if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?> <meta name="robots" content="noindex, nofollow" /> <?php **//**} ?>

Remove the comments indicators, in RED, put back the 'noindex,nofollow' line and you will be good to go. Will show only if site is in Maintenance mode as it should.

I'm sure the Template creators had their reasons for doing what they did but in these two cases, it does alter the default coding from working as one would expect.

The learning is in the doing.

Potent Products

30 Oct 2008, 3:28 PM
#8
dlaitila avatar

dlaitila

New Zenner

Join Date:
Sep 2005
Posts:
57
Plugin Contributions:
0

Post #8 by dlaitila

Thanks, I just did as you said. We'll see what happens. Do I need to submit my site to Google again?

30 Oct 2008, 3:35 PM
#9
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Post #9 by website_rob

You could but first I would check the stats for your site. If you use cPanel it has a program called AwStats. In it you see the last time any SE bot visited your site. Also, I do believe Google Webmaster Tools will tell you last time the Google bot visited.

The learning is in the doing.

Potent Products

1 Jan 2009, 12:12 AM
#10
meowhead avatar

meowhead

New Zenner

Join Date:
Nov 2008
Location:
Los Angeles, CA
Posts:
26
Plugin Contributions:
0

Post #10 by meowhead

Website Rob:

I was incorrect in my previous file name and 'html_header.php' is the correct file to edit.

In the Comstock Template they tried to comment out the 'noindex, nofollow' but it was done incorrectly. Perhaps that is the case within your file as well?

<?php **//**if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance') { ?> <meta name="robots" content="noindex, nofollow" /> <?php **//**} ?>

Remove the comments indicators, in RED, put back the 'noindex,nofollow' line and you will be good to go. Will show only if site is in Maintenance mode as it should.

I'm sure the Template creators had their reasons for doing what they did but in these two cases, it does alter the default coding from working as one would expect.

In case anyone using the Ocean Front template is interested:

I needed to remove the comment indicators in my Ocean Front template as well. This successfully removed the <meta name="robots" content="noindex, nofollow" /> from my site.

10 Jan 2009, 4:35 AM
#11
foteek avatar

foteek

New Zenner

Join Date:
May 2008
Posts:
50
Plugin Contributions:
0

Post #11 by foteek

I hate when people overuse CAPS, but...

THANK YOU! THANKS YOU! THANK YOU!

I'm embarrassed to say that I was struggling with this for a long time. I have a good PR with Google, no errors in my webmaster tools, they said I was indexed, but I never showed up on a search. Now I do!

TJ