how to target an element to edit the CSS

  • Unknown's avatar

    Hi,

    I have the CSS editing feature. I want to edit the author box styling, but don’t know how to target it. I do have firebug and that helped me identify the .author-box-description, but this doesn’t seem to be what I need in order to change the font size and line height for the author box. Advise?

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Howdy Lon!

    This should give you the ability to edit both of those attributes:

    #author-box .author-box-description p {
    font-size: 18px;
    line-height: 3px;
    }

    Just input that under Appearance -> Customize -> CSS.

    Let me know if you need anything else!

  • Unknown's avatar

    Thank you. That did allow me to edit the description. I have two further questions:

    1. I’d like to edit the styling of comments too. How do I target that?

    2. The CSS above did not let me edit the “Website” and “Posts” link styling in the author box. Actually, I would prefer to remove these if possible. But I can’t find anywhere in the admin that controls those links. Thanks, Lon

  • Unknown's avatar

    Hey Lon!

    See below:

    I’d like to edit the styling of comments too. How do I target that?

    Give this a try!

    #main .comment p {
    	font-size: 12px;
    }

    Actually, I would prefer to remove these if possible.

    This should do the trick!

    small.author-box-url a {
    display: none;
    }
  • Unknown's avatar

    awesome. Thank you. I wish I knew how to find these declarations in the CSS myself. do you just look at the original theme CSS or at my site using firebug? I’m not very good with firebug.

  • Unknown's avatar

    Hey Lon,

    Honestly, the comment styling actually took a bit of trial and error. I just used the Inspect Element tool (in Chrome) and played around with different selectors. Normally, I can get the right selector on the first or second try. This time around, it was more like 5-6 before I added the #main tag.

    If you’d like to check out some CSS resources, we have a handful here:

    http://en.support.wordpress.com/custom-design/editing-css/#css-help

  • Unknown's avatar

    pay dirt! Thanks, Lon

  • Unknown's avatar

    shoot! still trouble. I want to style the footer widget tag cloud links so that they’re not #dd0000. But when I changed them to #666, all the links on my site changed too. I haven’t figured out how to target just the tag cloud links.

  • Unknown's avatar

    Can you give this a try?

    .wp_widget_tag_cloud a {
    color: #000;
    }
  • Unknown's avatar

    yep. totally makes sense. I should have thought of that. Have a great w/e.

  • Unknown's avatar

    You as well Lon! Glad that worked.

  • The topic ‘how to target an element to edit the CSS’ is closed to new replies.