• Resolved cand01t

    (@cand01t)


    I’m looking for solution to entirely remove the pagination links (next post, prev post) at the end of each blog post.

    I know you can remove it using display: none, but I’m looking for any way to remove it entirely from the code.

    The goal is to prevent Google from crawling these links. Using display: none only hides them away from humans.

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • stilman davis

    (@stilman-davis)

    The first question is — are you using a child theme? If not, create one and then modify the child theme. You need to copy the index.php from the parent to the child.

    On the Main Index Template (index.php) remove the line

    	<?php get_template_part( 'template-parts/pagination' ); ?>
    

    I think that should do it, not being an expert in these things.

    I hope this starts you on your way.

    Thread Starter cand01t

    (@cand01t)

    Installed Twentytwig and it has the setting to remove the links.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Pagination Link in Posts’ is closed to new replies.