Tagged: code, navigation, next-post, previous-post
Dear support,
I have removed Previos and Next post arrows using the code: #top .avia-post-nav { display: none; }
However, the code <a class='avia-post-nav avia-post-prev with-image' href='url/' > ...
is still in the page’s source, with the links and images (they’re visible to SEO audit tools when I’m checking the pages).
How can I completely remove the code related to those navigation buttons? It’s very important to me, because I’ve built a silo structure for my website, i.e. a page has interlinks to other pages from the same category only. And these codes brake all the structure.
Thanks a lot in advance!
Regards,
Artem
Hey artemtik,
Add this to functions.php:
function no_post_nav($entries)
{
$entries = array();
return $entries;
}
add_filter('avia_post_nav_entries','no_post_nav');
Best regards,
Jordan Shannon
Thank you, Jordan!
It worked like a charm ;)
Have a great day!
Regards,
Artem
Hi,
I’m happy to help. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon