Hey guys, I have ‘private’ products inside woocommerce that are hidden from guests.
This is done by another plugin, but enfold still links the hidden products with the next and prev buttons on the sides of the screen.
This creates hundrets of 404-errors for google.
Is there a way to disable them code-wise inside the functions php without edeting the enfold files?
I don’t want to edit the files on every update…
Hey Luca,
Please provide a link to the site/page in question so we can look into this issue further.
Best regards,
Jordan Shannon
Link is attached, the buttons are hidden via CSS but they are still in the code for the crawlers to find.
I could remove them like descriped here but that would mean I have to edit that file everytime theres an update…
Hi,
You can use the removal method. You would just need to use a child theme to protect them from updates.
Best regards,
Jordan Shannon
I created a copy of the functions-enfold.php in my child theme and deleted the function, but it still shows the buttons.
I need some more help on how to do this
Hi Luca,
Yes, because the code still exists in the parent theme.
Here are some more solutions for you.
https://kriesi.at/support/topic/remove-left-and-right-post-navigation-function/#post-452706
Or you can go to the theme option and disable the post nav there
Best regards,
Victoria
Thank you Victoria, that was what I’m looking for!
Hi Luca,
Glad we could point you in the right direction.
If you need further assistance please let us know.
Best regards,
Victoria