What CSS code can I use to limit posts per page to 3?

  • Author
    Posts
  • #1211556

    alinakulesh
    Member

    I tried to change number of posts per page in “Reading” (from 5 to 3), but this isn’t working.

    Is there a CSS code that I can use to override? And change to have the home page show 3 posts only? Not 5?

    Thank you!

    #1211671

    That’s not a function that can be altered with CSS editing.

    #1211672

    Does the Custom Design upgrade let me edit HTML?
    No. The Custom Design upgrade allows you to edit fonts and CSS only. You can change the appearance of a theme, but not its HTML markup, PHP code, or content. … http://en.support.wordpress.com/custom-design/#frequently-asked-questions

    #1211765

    alinakulesh
    Member

    Okay, thank you!

    Any idea as to why my settings in “Reading” are not working?

    #1211766

    No so I tagged this thread for a Staff follow-up. Please subscribe to it so you are notified when they respond.

    #1211770

    alinakulesh
    Member

    Thank you very much!

    #1211775

    raincoaster
    Member

    Have you disabled Infinite Scroll already?

    #1211793

    sixhours
    Staff

    Howdy! It looks as though you’ve recently switched themes, but I’m guessing @raincoaster is on the right track — to display only 3 posts, you need to ensure the “Scroll infinitely” option is disabled (also under Settings -> Reading), otherwise most themes will display 7 posts regardless of the posts per page setting. I hope this clears things up!

    #1211843

    alinakulesh
    Member

    Hi, thank you for writing back.
    Yes, “Scroll infinitely” is disabled, the Splendio theme doesn’t allow it anyway.
    I am able to display as many posts as I’d like, but as soon as enter a number lower than 5, it doesn’t display that specified number of posts, just keeps it at 5.

    Any suggestions?

    Thank you.

    #1211857

    Sounds like you might have set some of your posts as sticky, and those will get stuck to the top of the posts lists regardless of other settings. Check to see if some of your posts are sticky posts:
    http://en.support.wordpress.com/posts/post-visibility/#sticky-posts

The topic ‘What CSS code can I use to limit posts per page to 3?’ is closed to new replies.