how to target an element to edit the CSS
-
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)
-
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!
-
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
-
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; } -
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.
-
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
-
-
-
-
- The topic ‘how to target an element to edit the CSS’ is closed to new replies.