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.
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:
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.
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. 🙂