Support » Themes and Templates » Can't overwrite Twenty Thirteen CSS styles

  • Resolved boxcandy

    (@boxcandy)


    Hey WPers,

    I’m trying to write some css into my twentythirteen child theme. I have done this many times before with other themes without issue but for some reason I can’t overwrite the styles in this theme!! For example, I am trying to remove the page titles i.e. Home, About, etc. so logic says just add a style such as:
    .entry-title{
    display:none !important;
    }
    but this doesn’t work! Any ideas why? I even tried .page .entry-title to try and be more direct and still nothing. When I actually scroll to the developers markup and change it there it works, so I know my style sheet is connected to the site (I like to keep all my coding at the bottom of the style sheet and leave the developers coding as-is).
    Any ideas??
    Cheers!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try adding:

    body { border: 10px solid red !important; }

    Anything happen?

    Thread Starter boxcandy

    (@boxcandy)

    nope 🙁

    Thread Starter boxcandy

    (@boxcandy)

    but, like I said before when I add it to the developers code up top of the style sheet, sure enough I get a big red border, weird eh??

    Thread Starter boxcandy

    (@boxcandy)

    ok, I got yours to work. had accidentally deleted the closing bracket of the @media print {
    tag thinking it was an extra closing bracket – oops. So this works body { border: 10px solid red !important; }
    but mine still doesn’t!

    Thread Starter boxcandy

    (@boxcandy)

    omg I’m an idiot…
    I had a syntax error in my code i had a colon while declaring the class
    .entry-title:{}
    Sorry to waste your time!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can't overwrite Twenty Thirteen CSS styles’ is closed to new replies.