Maybe you are wondering if there is an option to disable the single store pages? For example in some cases your stores listing are distributors, not your own stores. So, ideally, you only want them to show up in search results and for people to get directions, but not for them to be clickable and to have a dedicated page for each one of them.

In this case place the following code into your functions.php file of your child theme:


This will simply redirect all single store pages to your home page. Of course you can also change the URL by replacing home_url().

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *