Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #826898
    Benjamin1983
    Participant

    Hey Guys,
    everything was good until I updated X.
    Now the font-size in my menu is 16px and I can’t change it. Can you tell me what to put in my style.css to change is?!

    Website is: http://www.DieWeisseLilie.com

    Thanks a lot!

    #827036
    Thai
    Moderator

    Hi There,

    To change the font-size of the menu, please navigate to Customizer > Header > LINKS – TEXT > Navbar Font Size (px):

    http://i.imgur.com/T3CuMrP.png

    Hope it helps 🙂

    #827478
    Benjamin1983
    Participant

    Ha! That simple! Thanks.

    Another question. Before the update I had this code in my style.css to resize the font in the menu on smaller screens.

    @media (max-width: 1400px) {
    	.x-navbar .desktop .x-nav > li > a {
    	font-size: 90%;
    	}
    }
    
    @media (max-width: 1190px) {
    	.x-navbar .desktop .x-nav > li > a {
    	font-size: 76%;
    	}
    }
    
    @media (max-width: 1190px) {
    	.x-navbar .desktop .x-nav > li {
    width:9.7%;
    	}
    }
    
    @media (max-width: 1052px) {
    	.x-navbar .desktop .x-nav > li > a {
    	font-size: 70%;
    	}
    }
    
    @media (max-width: 1052px) {
    	.x-navbar .desktop .x-nav > li {
    width:9%;
    	}
    }

    it seems that this is no longer working. What do I have to do, that the text in the menu is readable on smaller screens until the menu collapse?

    Thank you!

    #827949
    Rupok
    Member

    Hi there,

    Thanks for updating. I can see these codes are overwriting by other CSS :

    .x-navbar .desktop .x-nav > li > a {
      font-size: 13px;
    }

    Maybe you have added CSS to customizer that’s why it’s getting more priority over the style.css. You can try !important tag for the Child Theme’s CSS if you have conflicting CSS on customizer. It will be better if you find them and adjust them to avoid conflict.

    Cheers!

    #828078
    Benjamin1983
    Participant

    I think the css what’s overwriting is the one you mentioned before. The navbar font size from the customizer. Is there a way to disable it?
    Thanks again

    #828239
    Lely
    Moderator

    Hi Benjamin,

    Disabling customizer options is not recommended. What we can do is override those CSS by adding the following:

    @media (max-width: 480px) {
    	.x-navbar .desktop .x-nav > li > a {
    	font-size: 90% !important;
    	}
    }
    

    The !important will make sure that above CSS will be applied and ignore the settings in the customizer.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-826898 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>