Forums

[resolved] First-child doesnt work (3 posts)

  1. tkse
    Member
    Posted 3 months ago #

    Hi.

    I am designing a new WordPress theme and everything goes fine until I post enough posts to "activate" pagination. Then all of a sudden the CSS-selector :first-child stops working.

    I am trying to give the newest post different styling and :first-child is perfect, but it won't work like I thought. Is there an easy fix to my problem or should I look for a new way to style the newest post seperately? If so, any suggestions?

    I am using the twentyeleven-theme. Any help is appreciated. :)

    Thanks!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    Do not edit the Twenty Eleven theme. It is the default WordPress theme and having access to an unedited version of the theme is vital when dealing with a range of site issues. Create a child theme for your changes.

  3. tkse
    Member
    Posted 3 months ago #

    I am using the twentyeleven-theme as a parent.*

    Anyways, stupid mistake from my side. Solved the problem. :)

Reply

You must log in to post.

About this Topic

Tags