richcolour:
Hi Clyde, I love your Zencart Zen template. One problem though, every page includes the meta tag :
<meta name="robots" content="noindex, nofollow" />
My site has been live for a month and even though the google spider regularly visits me, I've not appeared in any search results.
When I switch back to the Classic Contemporary Green template the problem goes away. Your earlier version of Zencart Zen didn't have this problem.
Thanks
Rich
richcolour:
OK, to fix it I followed the advice of Website Rob in this thread:
http://www.zen-cart.com/forum/showthread.php?t=111755&highlight=robots+noindex+setting
He said to remove the line:
<meta name="robots" content="noindex, nofollow" />
from
includes/templates/zencart_zen/common/html_header.php
I did that and none of my pages now have that meta tag. It seems a bit of a clunky fix, but would you agree with it?
By the way, this problem only seemed to occur on vers 2.0 of Zencart-Zen, earlier versions have worked perfectly.
thanks
Rich
Latest version of Zen Cart Zen is 1.1
This is the line of code that should be in includes/templates/zencart_zen/common/html_header.php at around line 32 - 34
<?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 } ?>