Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2011
    Posts
    14
    Plugin Contributions
    0

    Default Remove no index, no follow from category with no products

    I have 2 categories in a drop down menu that I am using just for text (testimonials and a blog).

    https://inksave.co.nz/

    As they have no products, they are not being indexed.

    Is there an easy way to remove the <meta name="robots" content="noindex, nofollow" /> from these categories?

    Thanks!

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: Remove no index, no follow from category with no products

    I think the logic for that is found in "includes/modules/pages/index/header_php.php" around line 64 in Zen Cart 1.5.5f
    PHP Code:
    if ($category_depth == 'products' && $listing->RecordCount() == 0$robotsNoIndex true
    You will need to change that.

  3. #3
    Join Date
    Oct 2011
    Posts
    14
    Plugin Contributions
    0

    Default Re: Remove no index, no follow from category with no products

    That worked perfectly! Thank you for your help!

  4. #4
    Join Date
    Jun 2007
    Location
    Eustis, Florida, USA, EARTH
    Posts
    836
    Plugin Contributions
    0

    Default Re: Remove no index, no follow from category with no products

    Quote Originally Posted by inky100 View Post
    That worked perfectly! Thank you for your help!
    I suspect that you got the same message from google that I got. They must have changed their algorithm.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Remove no index, no follow from category with no products

    .

    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.

 

 

Similar Threads

  1. How to remove New/all products from the category?
    By hayadude in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Jun 2010, 03:23 PM
  2. How to remove featured products from category page?
    By option2 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Feb 2009, 06:13 PM
  3. remove cart from 1 category - free products
    By thedonutlounge in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 4 Feb 2009, 08:16 AM
  4. Category index listing - products with qty discounts
    By bodyjewelrystores in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Sep 2006, 06:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR