WordPress.org

Support

Child theme

  • Hi, I created a twenty twelve child theme. I activated it and went to use the style sheet, but when I type change into it such as

    h2 {
    border-bottom: 1px solid black;
    }
    , they are not showing up?

    Can someone please tell me why?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • WPyogi

    @wpyogi

    Forum Moderator

    Possibly because your “selectors” (i.e. the h2) are not specific enough or you may need to use a media query to target styles for bigger screens in that theme.

    Try using a browser tool such as Firebug – it will show you the CSS for an element – you can then copy that CSS to your child theme and make the change there,

    Thank you. I will try that.

    HI – I tried this and found what I need to edit:

    <div class=”entry-content”>
    <h1>Philadelphia Workers’ Compensation Attorneys</h1>

    However, I do not understand how to edit this in my css.style editor? Currently, I have

    h1.entry-content{
    border-bottom: 1px solid black;
    }

    But, it does not work.
    Any suggestions or direction?

    WPyogi

    @wpyogi

    Forum Moderator

    You have that syntax backwards – try this:

    .entry-content h1 {
     ...
    }

    This says style an h1 one tag that’s inside an element with a class of entry-content. Yours says style and h1 element that has the class entry-content assigned to it – in that case, the HTML would be

    <h1 class="entry-content">

    Note that the above revised CSS will only work if there are no other styles overriding it.

    Thanks – Does Google fonts count as an overriding style?

    WPyogi

    @wpyogi

    Forum Moderator

    Please don’t create duplicate threads on the same question – it makes it much harder for people to help you on these forums – so I am closing this one – http://wordpress.org/support/topic/firebug-1?replies=10

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Child theme’ is closed to new replies.