Forum Replies Created
-
AuthorPosts
-
Hi, everything works perfectly. Please close this ticket
Hi again,
Made it work:
{
if( is_product_category() || is_shop() || is_product_tag())
{Thanks so much for the help
That worked like magic, thanks
Is it possible to add product tag as well?I’m using PHP 7.2 on the site.
syntax error, unexpected ‘{‘
PHP Syntax Check: Parse error: syntax error, unexpected ‘{‘ in your code on line 2if(!function_exists(#039;avia_woocommerce_avia_set_follow'))
{
function avia_wpseo_deactivate_avia_set_follow($meta)
{
if( is_product_category() || is_shop() ) {
$meta = '<meta name="robots" content="index, follow" />' . "\n";
}
return $meta;
}add_filter('avf_set_follow','avia_woocommerce_avia_set_follow', 10, 1);
}Hi,
Thanks for that but I got an error:
syntax error, unexpected ‘https’ (T_STRING), expecting ‘,’ or ‘)’The code was restored to the previous version because of an error.
I took a loog agiain and view the page code. It looks like this only is an issue for the WooCommerce pages.
I do not get this issue on the home and contact page but going to shop page and choosing a brand so I get the product category it will say follow, noindexThis reply has been marked as private. -
AuthorPosts