Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1345211

    hi
    i have the issue, that all pages on my site are indexed, the only page with the noindex entry is the main shop page. i have no seo plugin installed, and the settings are set to allow indexing.

    i’m using the endold theme.

    what we found out with the wordpress and woocommerce support is that the <head> element is coming from something named dynamic avia, which seems to be a feature of the enfold theme.

    could you help me please? i need the shop page to be set to follow, index as all the other pages.

    site: https://nemapo.com

    thanks!

    #1345312

    Hey nemapo77,

    Thank you for the inquiry.

    Adding this filter in the functions.php file should help to properly set the meta robots tag on product pages.

    if(!function_exists('avia_woocommerce_set_follow'))
    {
        function avia_woocommerce_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_set_follow', 10, 1);
    }
    

    Related thread: https://kriesi.at/support/topic/header-on-site-marked-with-noindex/

    Best regards,
    Ismael

    #1345768

    hi ismael

    thanks a lot for the input! could you tell me where exactly i have to place this into the file? i’m business user :-)

    cheers
    lieni

    #1345791

    Hi Lieni,

    Thank you for the update.

    You can add it at the very bottom of the functions.php file within in the child theme directory. If you haven’t installed a child theme yet, please check this documentation.

    // https://kriesi.at/documentation/enfold/child-theme/

    Best regards,
    Ismael

    #1346005

    hi ismael

    thanks for the hint.

    i do not like to install the child theme, as i have done all the configurations and styles on the main theme. otherwise i would have to to everything again.

    is there the possibility also to put this into the main theme? if yes, could you tell me the exact location and name of the file i need to update? and will this still be there after a theme update?

    regards
    lieni

    #1346073

    Hi lieni,

    You can put it into the parent, but it will be overwritten on updates. If you only want to transfer theme settings to your child, then you can do so under Enfold->Import/Export, once you have activated your child theme.

    Best regards,
    Rikard

    #1346196

    hi rikard

    thanks a lot! i did as you proposed now and everything is fine and works as expected. also the shop page has now the index, follw tag.

    have a great day and thanks again!
    lieni

    #1346221

    Hi,

    Great, I’m glad that we could help you out :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.