primary menu
-
screen space is important….
how can I change the width of the menu, the font size, caps & the font used?
thanx
-
Greetings….for font sizes etc., you can find the “Typography Options” tab in the customizer of the theme. Go to Appearance >> Customize >> Typography Options
If you need to change the font family or whether it’s in uppercase or not, you will need to do some custom CSS for that by using one of the following methods:
1. Plugin like “Simple Custom CSS”
2. If you use Jetpack, then you can use its Custom CSS feature
3. If you are using a child theme, you can do it directly in the style.cssTo change the font family of the menu, the default styling is:
.main-navigation { font-size: 0.813rem; font-weight: 400; text-transform: uppercase; }You can override the text transformation by doing this:
.main-navigation { text-transform: uppercase; }If you have other styling you want to do that the theme options doesn’t include, you can add them to that code above, including font-family.
Regarding changing the width of the menu, are you referring to the side column width? If so, this requires a bit more custom CSS to change, but let me know and I can point you in the right direction of what code to modify.
hi mr theme author
thank u for ur prompt reply…
it has taken me awhile to answer…
as I am really busy trying to get my web page set up..
(chordslyricseditor.com)
& yesterday I just moved from the states back to Europe…
using ur theme has fulfilled my basic needs….
but I’m sure there’s a lot more in there than I have been able to implement.
as u can see by the web page there is a lot of wasted space….
so yes I would like to be able to make the width of the primary menu smaller.
any other suggestions to use ur theme’s abilities would be much appreciated.
thanx…alanHi Alan,
To adjust the side column with, we also need to make a margin adjustment as well for the main content area as well. This is something I just implemented on the pro version of Morphology which you can apply to your needs here as custom CSS.
@media (min-width: 48em) { #landing-half-left, .sidebar { width: 30%; } .site-content { margin-left: 30%; } } @media (min-width: 68em) { .sidebar { width: 18%; } .site-content { margin-left:18%; } }Because it appears you are not using a child theme, or Jetpack, the next option to add custom CSS is to use a plugin like “Simple Custom CSS”. You can then copy and paste the above code into your new custom stylesheet.
UPDATE: If you need to adjust the width and margin to be different, you can do so.
-
This reply was modified 9 years, 8 months ago by
Shaped Pixels.
-
This reply was modified 9 years, 8 months ago by
Shaped Pixels.
hi mr theme author=TA
again thanx for ur prompt reply…
I installed the add custom css plugin…
then changed ur code width 18% to 10%
& I got what I now have on the website=chordslyricseditor.com
I tried to change the menu width setting:@media (min-width: 48em) {
#landing-half-left,
.sidebar {
width: 50%;
}
.site-content {
margin-left: 50%;
}
}@media (min-width: 68em) {
.sidebar {
width: 50%;
}
.site-content {
margin-left:50%;
}
}but that didn’t change anything either
my web is stuck on the setting.
what is wrong w/the programming or what did I do wrong?
thanx…alanFirst, you are OK with the width that you set?
So not you want the “menu” to have larger menu links?
hi mr ta
again thanx for the prompt reply.
there is sometimes a delay or for some changes
you have to reopen the window.
I didn’t see the changes until the next day.
for the menu & content sizes I’m still not sure what the numbers change.
sometimes the left side content is under the menu. confusing.
I changed the numbers back to the default values until I can figure out how it works.
as for the
main-navigation {
font-size: 0.813rem;
font-weight: 400;
text-transform: uppercase;
}You can override the text transformation by doing this:
.main-navigation {
text-transform: uppercase;
}
does not make sense
I tried text-transform: lowercase; that worked…but it’s not what I want.
removing text-transform: uppercase; they were still capitalized.
I want the menu items on the left side & as I have written them in the menu editor
(=Not centered & Not capitalized)
thanx for ur help….alanNot centered and not capitalized…you can do this:
.main-navigation { text-transform: none; text-align: left; }hi mr ta
Not centered and not capitalized worked
but when I reset the menu width from 30 to 20%…
the text is again capped & centered….
doing Not centered and not capitalized again…
& the width is back at 30%……
so there’s something inherently wrong in the programming.
it seems to me not a good idea to automatically cap the text…
if the user wants all caps he can write it that way in the menu editor.
hope u can find a fix.
thanx alanCan I get you to set your side column width to what you want, then reply back here and I will check it out. Also, make sure the CSS I gave you to make it align left and normal case text is also in place.
the menu width is set at 20% just now…capped & centered
when I set left & no caps the width is reset to 30% & centeredPerhaps I’m misunderstanding something here…. you wanted to adjust the width of the side column correct?
I pasted this code:
@media (min-width: 48em) { .sidebar { width: 30%; } .site-content { margin-left: 30%; } } @media (min-width: 68em) { .sidebar { width: 18%; } .site-content { margin-left:18%; } }Where did you put that code because I do not see it anywhere?
Then, you wanted to change the menu links to be left aligned and just normal case, not uppercase. I pasted this code:
.main-navigation { text-transform: none; text-align: left; }That I see in your custom stylesheet and on my end, is working. I see it aligned left and in normal case.
In your custom stylesheet, it should look like this:
@media (min-width: 48em) { .sidebar { width: 30%; } .site-content { margin-left: 30%; } } @media (min-width: 68em) { .sidebar { width: 18%; } .site-content { margin-left:18%; } } .main-navigation { text-transform: none; text-align: left; }Did I misunderstand what you are wanting to do?
-
This reply was modified 9 years, 8 months ago by
Shaped Pixels.
-
This reply was modified 9 years, 8 months ago by
Shaped Pixels.
hi mr ta
in appearance Simple Custom CSS I pasted the code….
@media (min-width: 48em) {
.sidebar {
width: 20%;
}
.site-content {
margin-left: 20%;
}
}@media (min-width: 68em) {
.sidebar {
width: 18%;
}
.site-content {
margin-left:18%;
}
}
then I pressed update custom css….ok done
then I removed the content and pasted
.main-navigation {
text-transform: none;
text-align: left;
}
then I pressed update custom css….ok done
it was left and not capped but the width went back to 30 percent.
when I reset width….again it was capped and centered.
doing something wrong but not sure what…
I looked at trying to create a child theme…
but not sure how to do that with out losing my work.
where should I go from here….what do u think?
thanx…..alanThe part I don’t understand is this part what you said:
…then I pressed update custom css….ok done
then I removed the content and pasted…You deleted the first code part after saving it, then put in the last code part?
If so, why did you delete the first code and not keep both sets of code?NOTE: When you paste code into the wordpress forums here, it’s best to highlight all the code, then on the editor, click on the “Code” button. This puts the code in a special block section so it doesn’t affect the WordPress page layout. So for example, the complete code that you need to add to your custom stylesheet looks like this in that “Code” block with the grey background.
@media (min-width: 48em) { .sidebar { width: 30%; } .site-content { margin-left: 30%; } } @media (min-width: 68em) { .sidebar { width: 18%; } .site-content { margin-left:18%; } } .main-navigation { text-transform: none; text-align: left; }-
This reply was modified 9 years, 8 months ago by
Shaped Pixels.
hi mr ta
I’m old school….I programmed my own web page but that was back in 2006.
a lot has changed since then(to the better I may add)…
u don’t have to keep reinventing the wheel.
the music app that I want to publicize I started back in 1997!Ok I understood the thing about the code…I saw the button here on the reply editor.
yes I actually thought the commands may have to be written together…
but I didn’t want to experiment….thanx for ur idea on that…
what I don’t understand is….there must be a lot of possibilities to change the
css code….I thought the simple css was just the vehicle to change the code….
what happens to the old code when I want to change something else…..
or do then all changes have to be written together?…..ah….that would make sense.ok getting back to the web page….it seems I can’t get the menu width smaller than 20%.
I’m constantly struggling to keep all of the apps I need visible & accessable.
the width of the menu is still too wide for my needs….but worse is the width of the content.
I have the ability to format my content to a width that I think is needed.
& on my web page there is so much wasted space on the right side.
vertical content is not a problem because of scrolling….horizontal is.
I hope u can understand my issues w/this…any suggestions welcome….thanx….alanThere are many ways to do custom CSS:
1. Child theme – using its own style.css file
2. Jetpack – if you use this, it has its own Custom CSS feature
3. Plugin – I usually recommend Simple Custom CSSAny of the methods above can be used to add your own custom CSS. These should overide the theme’s own styles. Also depends on the positioning of the css files in the source code and how they load. CSS that comes after another one will override the previous one (hence the term cascading stylesheets). So the old or previous code gets ignored for the newer one.
You said you cannot get the menu width smaller than 20%. Also, when you say menu width, I am assuming you are referring to the side column width? I need to make sure this is what you are referring to? The menu itself does not have a width applied to it, but the left side column does.
What width were you wanting instead of 20%? Remember, you can also use pixels instead of % if you wish. Percentage width will be of whatever the browser window is, so that means the width will adjust itself based on the window size.
As for content width, this will max out at 1165 pixels on full width pages. The overall site container is designed to fill the full width of the browser window…on all resolutions, even the really wide ones.
UPDATE:
When you said that you were able to change the width of your main content, but you still have a lot of empty white space to the right of it. I am beginning to think that you are actually wanting to make the overall width of the page (left column and main content column) to be less width and not extend 100% from the left to right of the browser window, but to have a boxed layout instead.If you need the overall page width to be less width, this won’t really be possible due to the design of this theme. If this is the case, then Morphology Lite won’t be the right theme for you then.
-
This reply was modified 9 years, 8 months ago by
The topic ‘primary menu’ is closed to new replies.
