WordPress.org

Ready to get started?Download WordPress

Forums

Highlight a last post add (5 posts)

  1. yessinito
    Member
    Posted 2 years ago #

    Hi everyone!

    i want asking how i can add highlight to a last post in my wordpress blog

    for example this image:

    http://data.imagup.com/10/1136856665.jpg

    will be:

    http://data.imagup.com/10/1136856747.jpg

    [use pastebin for large blocks of code]

    thank you for your help!

  2. timDesain
    Member
    Posted 2 years ago #

    try
    put this code in style.css

    #latest li:first-child{
    background-color:yellow !important;
    }
  3. yessinito
    Member
    Posted 2 years ago #

    thank you!!! the problem is fixed!

    but i can add it to the last posts per days (that mean the highlight will be just for latest posts posted in (x) day)

    THE PHP FILE

    http://pastebin.com/embed_js.php?i=LMWfD3eg

    thank you again =)!

  4. yessinito
    Member
    Posted 2 years ago #

    any answer please...

  5. yessinito
    Member
    Posted 2 years ago #

    up...

Topic Closed

This topic has been closed to new replies.

About this Topic