Learn in this tutorial how to disable the Easy Digital Downloads (EDD) archive page using code.
If you are using Easy Digital Downloads you already know that the URL /downloads/ is the archive page where all downloads are displayed.
In a previous tutorial I explained how to change that slug from “downloads” to “products”, for example.
But you may prefer to use the shortcode ([downloads]) or the Easy Digital Downloads Blocks plugin to define how downloads are displayed.
Is that your case?
Then the best thing to do is to disable the EDD archive page. Let’s see how:
Snippet to remove the Easy Digital Downloads archive page
Add the following code at the end of functions.php or in your functionality plugin:
To see this and another 1097 code snippets of this website, login or subscribe here.
Once you have added it, go to Settings > Permalinks and click on “Save changes”.
Now you can create a page with any name you want (“downloads”, “products”…) using the shortcode ([downloads]) or the Easy Digital Downloads Blocks plugin.
Conclusions
Do you want to disable the default archive page of Easy Digital Downloads? Now you know how to do it easily using code.
If you have any question, please leave it in the comments. And if you want to give me a suggestion for future snippets, please send it through the contact form.
Benefits of being a subscriber. 🙂