WordPress.org

Ready to get started?Download WordPress

Forums

Hiding page numbers on index.php (4 posts)

  1. crabbytech
    Member
    Posted 3 years ago #

    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!
    -Aaron
    http://www.crabbytech.net/

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    look for some code like: wp_link_pages() in your front page template (index.php ?)
    http://codex.wordpress.org/Function_Reference/wp_link_pages

  3. mydanblog
    Member
    Posted 3 years ago #

    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.

  4. crabbytech
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic