Okay
  Public Ticket #422332
Number of blog posts in blog feed
Closed

Comments

  • Marek started the conversation

    Hello,

    I'm using a blog feed row on the homepage of the website I'm working on. To make it work with the layout, I set up to accommodate 6 posts - so that it displays three in a row on large resolutions, two in a row on smaller ones and a single one on tiny.

    The nuisance is, that means to have an even number of posts, I need to use 6. This is ok on large screens but on tablets in portraits mode is way too many.

    Is it possible to restrict the number of blog posts in the homepage feed depending on resolution - for example when the layout moves to two columns - only two posts will be displayed, when the layout is a single column - only 3 posts?

    Many thanks

    Marek


  •  8,849
    Tahir replied

    Hey,

    You will likely need custom css to hide the extra posts.

    Thanks


    ThemeNectar Support Team 

  • Marek replied

    Hello,

    Custom CSS is not a problem but could you tell me how I can target particular blog post?

    For example if I could target directly blog feed poist number 3, I could make it disappear when the resolution goes below certain level and that would solve the problem.

    Thank you.

  •  8,849
    Tahir replied

    You will have to use the nth-child selector. See url :http://www.w3schools.com/cssref/sel_nth-child.asp

    Thanks


    ThemeNectar Support Team 

  • Marek replied

    Hello,

    Thank you very much for that tip. It works very well now.

    Marek