Home › Forums › Automattic › On a Whim › change site title font size
-
AuthorPosts
-
eliserobinsMemberHello! Sorry for the basic question, but I’ve been combing through the css file and I can’t figure out which selector I need to designate in order to change the font size of the site title. Thanks so much for your help!
December 11, 2014 at 2:52 pm #162613
Kathryn P.Happiness EngineerHi there, the easiest way to find a specific selector is by using a browser inspector, like the one built into Chrome or Firefox.
I right-clicked the site title in On a Whim and saw in my browser inspector that you can use this selector to change its size:
.site-title { font-size: xxxx; }
Replace xxxx with your font size and unit.
Here are some very helpful posts that will help you customize your site with CSS:
https://dailypost.wordpress.com/2013/07/25/css-selectors/
http://dailypost.wordpress.com/2013/06/21/css-intro/
http://dailypost.wordpress.com/2013/08/29/css-matched-rule-pane/
http://en.support.wordpress.com/custom-design/how-to-find-your-themes-css/
Just let me know if you need further help.
December 11, 2014 at 3:02 pm #162614
eliserobinsMemberThanks, Kathryn. I had tried that selector, and just tried it again, copying your code and changing size to 12px in the CSS editor, but no luck. Here’s my website if that helps:
stangerandrobins.com
Thanks so much for your help.
December 11, 2014 at 3:08 pm #162615
Kathryn P.Happiness EngineerIt looks like you’ve added comment tags around your code, which prevents it from being applied:
/* .site-title { font-size: 12px; } */
Remove these lines:
/* */
Comment tags are for internal notes you want to leave in your code, or code you want to temporarily prevent from taking effect.
Let me know how it goes!
December 11, 2014 at 3:54 pm #162617
eliserobinsMemberD’oh! It’s been a while since I’ve done CSS (obviously). Thank you so much!!
December 11, 2014 at 3:57 pm #162618
Kathryn P.Happiness EngineerYou’re very welcome! I’m marking this thread as resolved but don’t hesitate to start a new one if you need help with anything else.
-
AuthorPosts
You must be logged in to reply to this topic.