Support » Fixing WordPress » Hiding page numbers on index.php

  • Hello there,

    I’ve got my longer blog posts broken up into more than one page and at the bottom it has the pages as links, 1, 2 and 3.

    That’s perfect for when you get into the actual post, but is there a way to hide those page numbers on the main index page that you see when you first bring up the site? I want it to just have the “Read more” link and not have the extra links to each individual page.

    I’m guessing this piece of code is in the index.php area?

    Please and thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael


    Forum Moderator

    look for some code like: wp_link_pages() in your front page template (index.php ?)

    Or go to your css and add:

    .home .page-link {display: none;}

    That should do it.
    Your css file looks like it has got some major issues, though. Some missing {} somewhere.

    Thanks everybody. That code did the trick mydanblog. Thanks for letting me know. I’ll see if I can find the error. This was a preexisting theme that I’ve heavily edited and I probably goofed something up somewhere. It’s still loading fine for me though so I wonder where it could be.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hiding page numbers on index.php’ is closed to new replies.