Support » Themes and Templates » Can't get p:first-child to work – (2011 .singular issue?)

  • Resolved AardvarkGirl


    I want the first paragraph to have a right margin or padding. I had it working in the static version of the site.

    It isn’t working in the WP version however… I think it is due to the body .singular class. I will not ever be using a ‘single column/no sidebar’ page on this (2011 duplicate theme) site so instead of doing the tedious work around in the functions.php file to remove the .singular class or forcing the site owner to select the ‘sidebar’ template whever he creates a page, I simply forced the default page template to be ‘sidebar friendly’. I then went through the style sheet and removed the .singular references.

    Yes, I have Firbug and the Chrome inspector. This is a fresh, clean WP install, no plugins.

    I’m trying;

    p:first-child {padding-right:10%;}


    .entry-content p:first-child {padding-right:10%;}

    I’m trying margin, I’m trying padding.

    I wonder if this is related to the body .singular.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can't get p:first-child to work – (2011 .singular issue?)’ is closed to new replies.