Change only number of blog posts on home page

  • Hello,

    Trying to figure out how to set my home page to display X amount of blog posts, but leave my other pages open to a higher amount of posts.

    Any help is greatly appreciated!

    The blog I need help with is: (visible only to logged in users)

  • The number you pick in the reading settings works across all multi-post pages. You could set this to the higher number then hide some of the other posts on your homepage.

    This code will hide the last 2 posts, just change the number to change the amount:

    body.home .site-content-wrapper article:nth-last-child(-n+2) {
      display: none;
    }
  • The topic ‘Change only number of blog posts on home page’ is closed to new replies.