WordPress.org

Ready to get started?Download WordPress

Forums

[closed] Child theme (7 posts)

  1. mrmccarrin
    Member
    Posted 1 year ago #

    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.

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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,

  3. mrmccarrin
    Member
    Posted 1 year ago #

    Thank you. I will try that.

  4. mrmccarrin
    Member
    Posted 1 year ago #

    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?

  5. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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.

  6. mrmccarrin
    Member
    Posted 1 year ago #

    Thanks - Does Google fonts count as an overriding style?

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.