Archived topic
remove from the code nav-previous
3 replies · Started by Jonathan on January 10, 2023
Hi,
At the end of all my cetagory pages. I have two paginations that show up in the code.
one is under the class="nav-previous" and the other one is class="nav-links".
I would like to know how to remove nav-previous from the code, not only display: none, but really remove from the front end code.
Thank you
Hi Jonathan,
nav-previous is only hidden if you're on page 1. It would show on pages 2 onwards.
It's basically part of the navigation structure. You can check it by going to page 2.
To clarify, do you want to remove the "previous" button in the archive navigation?
I want to remove the whole div with the class=”nav-previous” as this show up as an error in search console.
Is there a place in WP code editor that I can remove or comment this section?
I can't find this section in code editor.
Thanks
Hi there,
its not easy to remove as its baked into this function, simple option may be to unhook the navigation and use the WP-PageNavi plugin
Link here from support topic show how to integrate:
Out of curiosity what is the Search Console error it is causing ?