Community Forums › Forums › Archived Forums › Design Tips and Tricks › Streamline Child Theme: Increasing font size in Primary Nav Menu
- This topic has 7 replies, 3 voices, and was last updated 12 years, 7 months ago by
biskinner.
-
AuthorPosts
-
April 30, 2013 at 8:14 pm #38662
biskinner
MemberHello everyone! I want to increase the font size in my Primary Navigation Menu and I experimented with that (using the CSS Stylesheet) in a couple different places but it didn't actually change the font on my Primary Nav Menu, so I'm assuming I'm not changing the right code! Does anyone know where that exact piece of code is located? Thanks for your time! theskinnyonrealestate.com
April 30, 2013 at 8:24 pm #38664Terry
MemberHi biskinner,
You can add font-size to the .primary-menu styling at line 283 of style.css.
Regards,
Terry
April 30, 2013 at 8:36 pm #38665biskinner
MemberThanks Terry! Is there an easy way to locate line 283? As I'm looking at the stylesheet I don't seem to have any line numbers.
April 30, 2013 at 8:53 pm #38668Terry
MemberOh, I'm so sorry. You can either install the "advanced code editor" plugin and it'll give you line numbers or I can give you more specific directions.
Sorry I ftp the files and edit them and sometimes forget.
Terry
April 30, 2013 at 10:08 pm #38671biskinner
MemberZowie! That's a great plugin - thanks for the tip.
The code at line 286 is this: font-size: 12px;
And I tried editing that before and it didn't have any effect on the menu font size. Is that because it doesn't apply to that particular area?
And just to be clear, if I do need to add additional code regarding the font, on line 283, do I input it the same way as line 286? Such as: font-size: 14px;?
May 1, 2013 at 1:46 am #38704Marco
MemberHello,
after
`.menu-primary,
.menu-secondary,
#header .menu {
clear: both;
color: #aaa49f;
font-size: 12px;
margin: 0 auto;
overflow: hidden;
text-shadow: 1px 1px #000;
text-transform: uppercase;
width: 100%;
}`
add:
`.menu-primary {
font-size: 14px;
}`save and refresh your home page.
May 1, 2013 at 6:29 am #38730Terry
MemberGlad the plugin worked for you!
Have you tried using Chrome Dev Tools or Firebug(FireFox)? Andrea has a fantastic Firebug tut. They are tools to provide visibility into your site from within the browser and are easy to use. They also let you change the css live to see the results w/out editing the css file.
Using Firebug it shows line 283 as the start of the .menu-primary, .menu-secondary, #header .menu styling as Marco showed above. Because you have only a single nav, you can change the font-size: 12px; to whatever you want and have it display.
Or just add the separate statement below (thanks Marco!).
If you've made either change, saved & refreshed and it's not showing up - clear your browser cache and reload.
Good Luck!
May 1, 2013 at 2:29 pm #38826biskinner
MemberThank you both so much for your help! It worked very well!
And I can see where that plugin will really come in handy. I told a friend of mine about it too and he already installed it and is excited about using it.
-
AuthorPosts
- The topic ‘Streamline Child Theme: Increasing font size in Primary Nav Menu’ is closed to new replies.