
-
AuthorPosts
-
March 19, 2022 at 8:20 pm #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!
March 21, 2022 at 5:54 am #1345312Hey 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,
IsmaelMarch 23, 2022 at 10:35 pm #1345768hi 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
lieniMarch 24, 2022 at 2:58 am #1345791Hi 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,
IsmaelMarch 25, 2022 at 1:45 pm #1346005hi 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
lieniMarch 25, 2022 at 7:18 pm #1346073Hi 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,
RikardMarch 27, 2022 at 12:37 pm #1346196hi 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!
lieniMarch 27, 2022 at 6:02 pm #1346221 -
AuthorPosts
- You must be logged in to reply to this topic.