Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1112957

    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

    • This topic was modified 5 years, 5 months ago by artemtik.
    #1113154

    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

    #1113199

    Thank you, Jordan!

    It worked like a charm ;)

    Have a great day!

    Regards,
    Artem

    #1113229

    Hi,

    I’m happy to help. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Removing the code from Previous and Next post arrows’ is closed to new replies.