• Hi, I want to change the original Sydney theme’s main menu to a static horizontal menu. Is the any code I could insert that would do this?

    note: I’m not familiar with writting html or css codes, so if it’s not much asking, I would be happy if someone could explain how to do it step-by-step.

    Thanks in advance.

Viewing 12 replies - 1 through 12 (of 12 total)
  • So you want to change the default mobile menu to become horizontal as seen on the larger screen? I am not sure, though. Could you please refer to this thread?

    Regards,
    Kharis

    What do you mean by static? Do you want the nav to follow you down the page as you scroll? fixed?

    Thread Starter llazera

    (@llazera)

    Thanks for paying attention to my doubt Kharis Sulistiyono and briand99.

    I want to have a horizontal menu bar with the pages always visible at the top of the page; is it possible? Maybe It’s not called “static” as I called it.

    do me a favor go into your theme editor and at the bottom of style.css paste this;

    .navbar-nav {
    position:fixed;
    z-index:999;
    background-color:#fff;
    }

    Is this what your wanting it to do?

    Just wanting to see if I understand what your asking for

    Thread Starter llazera

    (@llazera)

    briand99 I did what you asked and nothing changed.

    But I’ll explain better:

    The main menu of Sydney theme is by default an icon at the top of the page and displays the pages only when clicked. My intention is to change it to a menu like that of the Zerif theme which is shown even when you scrow down as a horizontal menu at the top.

    https://themeisle.com/demo/?theme=Zerif%20Lite

    Hello @llazera,

    I guess you are using a device which its screen width less than 1025px. On it, the main navigation shifts into an iconic object and the menu items will be displayed vertically once it gets clicked/tapped. We call it as mobile menu.

    To display the main navigation horizontally on 1024px screen width, please follow these steps:

    1. Open the js/main.js in your code editor, then copy the whole content of it; then paste it into js/main.min.js. So it will be more readable

    2. In the js/main.min.js, find the following code block

    if ( matchMedia( 'only screen and (max-width: 1024px)' ).matches ) {
    	currMenuType = 'mobile';
    }
    

    Here is the viewport breakpoint was specified.

    3. Change it to the following.

    if ( matchMedia( 'only screen and (max-width: 768px)' ).matches ) {
      currMenuType = 'mobile';
    }
    

    4. Save the changes, then update it through FTP or cPanel

    CSS adjustment

    Try to apply the following CSS code through the Simple Custom CSS plugin.

    @media only screen and (min-width:769px){
    
      .site-header .col-md-4{
        width: 33.33333333% !important;
        float: left !important;
      }
    
      .site-header .col-md-8 {
        float: right !important;
        width: 66.66666667% !important;
      }
    
      .btn-menu{
        display: none !important;
      }
    
      .mainnav{
        display: block !important;
        top: 0 !important;
      }
    
    }
    

    To sticks the menu at the stop of the screen, add this CSS code:

    @media only screen and (min-width: 769px){
    
      .site-header,
      .site-header.fixed{
        position: fixed !important;
      }
    
    }

    Because you are editing the core theme’s file, you should take it at your own risk. The future theme update will overwrite the changes you have made in the main.min.js file.

    Regards,
    Kharis

    Thread Starter llazera

    (@llazera)

    Kharis your support was great!
    Indeed the problem was my monitor ( I wasn’t even considering this possibility).

    Though I haven’t tried applying your codes because I don’t know if it works for both my monitor and also higher resolution monitors. Is this code reversible?

    Thanks.

    Hello there,

    Yes, it is reversible.

    Before you edit the main.min.js file, please make a backup by duplicating this file with other name like main.min.js.bak or something. If the modification doesn’t run as what expected, you can delete the main.min.js. Then rename main.min.js.bak to main.min.js. To undo custom CSS adjustment, you can delete it from Simple Custom CSS plugin.

    Regards,
    Kharis

    Hello there,

    Im very new at wordpress and i am having problens with sydney theme and the menu font type, that is to small and dificult to read. how can i change the font menu and size for a better reading.

    Regards,
    Márcio Daniel

    Hello Marcio,

    Yo change the default menu font family, you can use this CSS code:

    
    #mainnav ul li a { 
      font-family: Arial Black,sans-serif;  
    }  
    

    Please refer to this CSS font stack to properly define your preferred font.

    To apply extra custom CSS code to your site, add it to Appearance > Customize > Additional CSS from your site dashboard.

    To change the menu font size, go to Appearance > Customize > Fonts > Font Sizes > Menu items.

    Regards,
    Kharis

    I am new to WordPress, using the Sydney theme.
    Have a question about drop down menus… can you do this with the Sydney theme?
    Want a menu item to say “Education” and when you click on it to have a list of different types of Educational offerings in the menu to drop down to scroll down to choose from. Any help would be greatly appreciated. — Aprile0203

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Changing theme's main menu to horizontal’ is closed to new replies.