+1-888-365-2779
Try Now
More in this section

Forums / Designing & Styling / News list display settings: skipping the most recently published article

News list display settings: skipping the most recently published article

5 posts, 0 answered
  1. Scott
    Scott avatar
    4 posts
    Registered:
    20 Jun 2013
    20 Jun 2013
    Link to this post
    Hi all.

    In order to change the style of the first news item, I've separated a news list in to two. However, this means that the most recently published article displays twice. Is there a means of starting at the second most recently published article (without tagging or categorising), for the second part of the list?

    Or, is there an entirely more elegant solution to modifying the style of the first item only?

    Thanks,

    Scott
  2. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    20 Jun 2013 in reply to Scott
    Link to this post
    This news list creates a UL.  Using CSS you should use:
    .sfnewsList li:first-child{font-weight:bold;}
    This will get the first LI this is assuming you have not edit the widget template and changed the class(es)
  3. Scott
    Scott avatar
    4 posts
    Registered:
    20 Jun 2013
    20 Jun 2013 in reply to Jonathan
    Link to this post
    Thanks Jonathan, great idea. For some reason I was thinking we were still in 2007 and first-child wasn't widely supported by the browsers!
  4. Jonathan
    Jonathan avatar
    119 posts
    Registered:
    19 Dec 2012
    20 Jun 2013 in reply to Scott
    Link to this post
    No worries! Good Luck!
  5. Stefani Tacheva
    Stefani Tacheva avatar
    718 posts
    Registered:
    06 Dec 2016
    25 Jun 2013
    Link to this post
    Hi Jonathan,

    Thank you for helping and sharing solutions.

    Regards,
    Stefani Tacheva
    Telerik
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
5 posts, 0 answered