WordPress.org

Ready to get started?Download WordPress

Forums

Different background color recent posts (7 posts)

  1. royveldkamp
    Member
    Posted 2 years ago #

    Hi

    How can i style the links inside the recent post area seperately?
    Is it possible to give each link a different class?

    Any help would be much appreciated!

    EX:

    - link to recent post 1 (red)
    - link to recent post 2 (blue)
    - link to recent post 3 (green)

    MY CODE:
    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  2. Vanwijk
    Member
    Posted 2 years ago #

    Anyone?
    I would also like to know this...

  3. jnhghy
    Member
    Posted 2 years ago #

    Hi,
    One way that I see it to work is to use a php-widget plugin, query your posts throw the php-widget and style them with the class that you want to use.
    Regards

  4. martcol
    Member
    Posted 2 years ago #

    Is this any help?

    blakeimeson.com/style-links-with-css-by-category-wordpress/

  5. Vanwijk
    Member
    Posted 2 years ago #

    Almost...

    But the posts are all the same category.
    Is there a way to put some kind of counter inside the loop.

    Thanx for your reply!

  6. royveldkamp
    Member
    Posted 2 years ago #

    I have searched the complete forum... Only to find a solution to style the first post different. I think we're stuck.

  7. jnhghy
    Member
    Posted 2 years ago #

    try the php-widget plugin
    :)

Topic Closed

This topic has been closed to new replies.

About this Topic