• Hope someone can assist with this issue,

    Our online store must be hidden from the general public on all search engines. This includes product pages and the shop catalog. Customers are only directed to the store through google adwords, in all other cases we do not wish to complete with our distributors.

    I have created a custom plugin using this code:

    add_action( 'wp_head', 'mycode_add_noindex_to_product_pages' );
    function mycode_add_noindex_to_product_pages() {
    	if ( is_product() ) {
    		echo '<meta name="robots" content="noindex, nofollow">';
    	}
    }

    It is adding the noindex no follow meta properly, but there is a “index follow” appearing in the code that I cant remove before that. Please see the page code.
    An example product page is here:
    https://tom-pac.com/product/tp-2700-ultra-temp-grease-14oz-cartridge/

    I have also installed a meta tag plugin (All In One SEO Pack) that allows to exclude certain types of pages from being indexed. Products is one of the options so I have checked that item, but it does not seem to help.

    Can someone please indicate how to remove indexing for ALL woocommerce pages.

    Thanks for any help,

    Steve

    https://www.ads-software.com/plugins/woocommerce/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide all store pages from search engines’ is closed to new replies.