Home › Forums › Basel support forum › Menu fonts – Child theme
Menu fonts – Child theme
- This topic has 18 replies, 2 voices, and was last updated 8 years, 3 months ago by Artem Temos.
-
AuthorPosts
-
August 20, 2016 at 2:00 pm #2961
AnonymousInactiveHi
Here is a new concern.I want to change the appearance of the menu : I don’t like uppercase and I want a smaller text.
After spending a lot of time checking eveywhere and making unsuccesfull trials in “typography”, I have checked on the web and see that it was necessary to change the code and that it has to be done in a child theme. I went in your documentation that leads me to a Worpress page.
I don’t understand what I should do : there is a zip “Baseld child” present in the files of Basel, but it does not show when I go to the “themes” pages so I can’t call it…
Lost I am…August 21, 2016 at 10:02 am #2982
Artem TemosKeymasterHello,
Thank you for the question.
1. Install your child theme by uploading basel-child.zip in Appearance -> Themes as you did it with parent theme and activate it. It will give you the ability to make your code change inside the child theme and not loose it after parent theme update.
2. As for typography please provide a screenshot of which text do you want to change font and we will give you a custom CSS code.
Regards
August 21, 2016 at 10:48 am #2986
AnonymousInactiveOK I will try this. For the code of the text, I must be sure of what I want and I am not yet. I am going to make trials ; I think I can do that by myself. Maybe you can just tell me what line of the code is about the menu police ?
August 21, 2016 at 10:52 am #2987
Artem TemosKeymasterOkay, so if you are going for example to change menu text to lowercase so the code will be like this
.main-nav .menu > li > a { text-transform: initial; }
August 21, 2016 at 12:40 pm #2988
AnonymousInactiveOK perfect. Thank you very much
August 21, 2016 at 3:35 pm #2993
Artem TemosKeymasterYou are welcome 🙂
August 24, 2016 at 5:45 pm #3109
AnonymousInactiveHello Xtemos
I have tried to change the code for the menu but I don’t know WHERE I have to place the code you have given to me.
All this seems to be about the main menu :.header-simple .main-nav .menu > li.menu-item-design-full-width > .sub-menu-dropdown, .header-categories .main-nav .menu > li.menu-item-design-full-width > .sub-menu-dropdown { top: 120%; } .header-simple .main-nav .menu > li.menu-item-design-full-width.item-event-hover:hover > .sub-menu-dropdown, .header-simple .main-nav .menu > li.menu-item-design-full-width.item-event-click.item-menu-opened > .sub-menu-dropdown, .header-categories .main-nav .menu > li.menu-item-design-full-width.item-event-hover:hover > .sub-menu-dropdown, .header-categories .main-nav .menu > li.menu-item-design-full-width.item-event-click.item-menu-opened > .sub-menu-dropdown { top: 100%; } .header-simple .main-nav .menu > li > .sub-menu-dropdown, .header-categories .main-nav .menu > li > .sub-menu-dropdown { top: 100%; } .header-simple .main-nav .menu > li.item-event-hover:hover > .sub-menu-dropdown, .header-simple .main-nav .menu > li.item-event-click.item-menu-opened > .sub-menu-dropdown, .header-categories .main-nav .menu > li.item-event-hover:hover > .sub-menu-dropdown, .header-categories .main-nav .menu > li.item-event-click.item-menu-opened > .sub-menu-dropdown { top: 80%; } .header-simple .main-nav .menu > li > a { height: 115px; line-height: 115px; } .header-categories .main-nav .menu > li > a { height: 115px; line-height: 115px; }
Do I have to change each occurrence of “main-menu” ?
August 24, 2016 at 6:08 pm #3112
Artem TemosKeymasterActually you don’t need to change our styles.css. Simply add this code to the Custom CSS section in Theme Settings
.main-nav .menu > li > a { text-transform: initial; }
August 24, 2016 at 6:16 pm #3114
AnonymousInactiveYesss ! It works.
I have added this code only in the first panel “Global Custom CSS”.
Is it necessary to add it in the other panels ?August 24, 2016 at 6:41 pm #3116
Artem TemosKeymasterNo, only to global section 🙂
August 24, 2016 at 6:47 pm #3119
AnonymousInactivePerfect.
One more question :
What field of “typography” allows to fix the size of the menu font ? I have made several trials but no changes…August 24, 2016 at 6:54 pm #3120
Artem TemosKeymasterTry to change it with “Navigation font” option.
August 24, 2016 at 6:55 pm #3121
AnonymousInactiveOK Thank you !
August 24, 2016 at 11:55 pm #3134
AnonymousInactiveHi
After making changes in “Typography”, the cms does not work anymore. I have removed it and added it again, it does not work…August 25, 2016 at 4:56 am #3140
Artem TemosKeymasterWhat do you mean by “cms does not work anymore”? Please explain you problem in more details.
August 25, 2016 at 9:06 am #3151
AnonymousInactive.main-nav .menu > li > a { text-transform: initial; }
This custom css you gave me for lowercase has been working with my previous configuration. But with the new one, my main menu (you can see it it the top header) stays in uppercase. I don’t understand why it does not want to change…
August 25, 2016 at 4:03 pm #3162
Artem TemosKeymasterIt is because you have copied the code without necessary symbols. We have corrected it on your web-site. Please check.
August 26, 2016 at 8:53 am #3173
AnonymousInactiveThank you sooo much for your help.
Have a nice day.August 26, 2016 at 10:52 am #3175
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
- You must be logged in to create new topics. Login / Register