I supposed I could just do a 301 from .htacess to redirect to these pages to the home page, but it would be so much neater if there was a way for Google to crawl these pages.
Anyone got any ideas?
I supposed I could just do a 301 from .htacess to redirect to these pages to the home page, but it would be so much neater if there was a way for Google to crawl these pages.
Anyone got any ideas?
I do not beleive that these are different pages. I am not an expert on this but all you are doing is hiding and revealing areas of the page when you click on the tab. Zen cart does have seperate pages to display new items and featured items. If you look at the html for the page you will find all the items on each tab are already on the page. They just arn't visable. Therefore I would reason that it is not necessary for google to list the tabs as seperate pages.
Mark Brittain
http:\\innerlightcrystals.co.uk\sales\
Thank you.
Yes, the problem is that Google seem them as separate pages, and since the link does not actually lead to a page that exists, and produces a 404 error, Google reports it as a 404 error in Google Console.
It's been a while since I've used this template and I'm not sure in which file you'll find this code, but for the tabs there is:
if you remove the href content like soCode:<li><a href="section-1" class="icon-food"><span>Newest</span></a></li> <li><a href="section-2" class="icon-shop"><span>Featured</span></a></li> <li><a href="section-3" class="icon-cup"><span>Specials</span></a></li>
the tabs will still work but google shouldn't complain. There will be a prettier way to do this but I only have a few mins.Code:<li><a href="" class="icon-food"><span>Newest</span></a></li> <li><a href="" class="icon-shop"><span>Featured</span></a></li> <li><a href="" class="icon-cup"><span>Specials</span></a></li>
That's a great idea, and works really well! Removing that just leave the site url, which is fine.
For anyone else that want to fix this, the file is:
/includes/templates/responsive_sheffield_blue/templates/tpl_index_default.php
I have done the same fix on the product info pages, which also have a #section-1,#section-2 and #section-3, which produces a 404.
The file for this is:
/includes/templates/responsive_sheffield_blue/templates/tpl_product_info_display.php
As I come back to this, I believe a better way would be to remove the href altogether, so
becomesCode:<li><a href="" class="icon-food"><span>Newest</span></a></li> <li><a href="" class="icon-shop"><span>Featured</span></a></li> <li><a href="" class="icon-cup"><span>Specials</span></a></li>
As I've just read an 'a' tag without the href is a 'placeholder hyperlink' in HTML5. You also don't need the class attribute but I've left it in in case it helps with any future styling needs.Code:<li><a class="icon-food"><span>Newest</span></a></li> <li><a class="icon-shop"><span>Featured</span></a></li> <li><a class="icon-cup"><span>Specials</span></a></li>
Removing the href means you lose the 'hand on hover' so you will have to add a line to your stylesheet, like this
Code:.tabs nav a { color: #becbd2; display: block; font-size: 130%; line-height: 2.5; padding: 0 1.25em; white-space: nowrap; cursor: pointer; }
Zencart 1.5.5f, new install, no add-ons/plug-ins.
Can someone please tell me where to change/replace the images/alt in the slider on the home page? I have gone into admin/tools/define pages editor/define_main_page.php and there is nothing there for it and I cannot seem to locate where to make the changes.
If by images/alt you mean the text that appears on the images on the slider, then that would be done in the admin panel tools/banner manager. The slide title is what apprears as text.
Bookmarks