WordPress.org

Ready to get started?Download WordPress

Forums

How do I add css classes to individual archive links? (2 posts)

  1. sevenglaciers
    Member
    Posted 10 months ago #

    I want to style my archives widget by replacing each month with a different image.

  2. paulwpxp
    Font hero
    Posted 10 months ago #

    I would use CSS attribute selector.

    For example, this will make background red for June's link in archive widget.

    .widget_archive li a[title*="June"] {
    	background: red;
    }

Reply

You must log in to post.

About this Topic