Do you want wonderful menus on your desktop and mobile devices? We covered you up. This guide shows how to match the desktop and mobile menus of the WordPress website. In recent years, the use of mobile devices in Internet search is increasing. But not all websites are designed to provide users with a mobile experience. In order to maximize the use of mobile visitors, you need to ensure that your site responds as well on the move as on the desktop screen. Before demonstrating how to match desktop and mobile menus, let’s take a look at the benefits of using the same design.
Why do desktop and mobile menus match? Although it is becoming more and more common for users to search the Internet on mobile phones, not all websites are designed to provide a good experience for mobile users. To make the site easy to navigate on all devices, you must match the desktop with the mobile menu to make it attractive on all screens. At present, most websites have a title menu on the desktop screen. But this is not the case on mobile screens. Many website owners use the default option of mobile, so menus are usually bad.
Let’s look at an example. Suppose your website has a standard menu with a height of 30px and a maximum logo height of 100px. If you check the same menu on your mobile phone without changing it, it will become like this. Male: as you can see, it’s very big, accounting for almost 20% of the screen. The good news is that you can make some adjustments to match the desktop and mobile menus. Therefore, the latter is: To provide users with an excellent experience on all sizes of screens, it is essential to match the desktop with the mobile menu. In addition, a good-looking and responsive website can also help improve site navigation and participation.
Now that we have a better understanding of why we want to match desktop and mobile menus, let’s take a look at this method. In WordPress, matching desktop and mobile menus is not a complex process. Just follow the steps below. Keep in mind that you will use some CSS code to specify the style of the menu, but you can follow the guidelines even without coding techniques. In this guide, the divi theme is one of the most responsive, easy-to-use and feature rich topics in word press. Some interfaces may vary depending on the theme used on the site, but you must be able to apply most of the changes to the theme.
1. In order to match the menu configuration desktop with the mobile menu, the first thing to do is to configure the menu. This is the same in most topics. Among them, adjust the height of the menu and logo. On the WordPress dashboard, navigate to shapes > Customize. Title and Navigation > Theme customization program, which needs to open the default menu bar. Then disable the hide logo image option, deselect, and adjust the height of the menu and the maximum height of the logo as follows: Menu height: 30 maximum height of sign: 100 male
This will reduce the height of desktop and mobile device menus, make them more elegant, and provide more space for mobile screens. Publish after setting the value. 2. After using CSS to configure the menu and edit the logo and menu, you can use CSS to start editing the menu. There are several ways to add CSS to WordPress to match desktop and mobile menus. Can be added to a single specific page or to the entire web site. In order to maintain design consistency, it is recommended to apply CSS changes in the menu to the whole website. However, if necessary, you can also include CSS code in specific web pages. The following two
Save high changes@ Media (maximum width: 980px){
#Page container{
Down jacket Tower: 43px! important
}
}
@Media (maximum width: 980px){
#Logo{
Maximum width: 100%! important
Maximum height: 90%! important
}
}
@Media (maximum width: 980px){
#Main title{
Above: 4%! important
}
}
@Media (maximum width: 980px){
#Et top navigation{
Down jacket Tower: 5px! important
}}
.et_header_style_split . mobile_menu_bar,
.et_header_style_left . mobile_menu_bar {
Lower end of down jacket: 5px;
}This is just sample code and may need to be adjusted according to the site design. For some additional tips on mobile menus, we saw how to easily match desktop and mobile menus on the website. However, there are also things you can do to customize the mobile menu. This section lists some of the most common customizations that can be performed to maximize the use of menus. This tutorial uses the divi theme, so some options may vary slightly depending on the theme used. 1. Fixed mobile menu method one of the best ways to modify the mobile menu is to modify it when the user scrolls on the website. This can improve navigation and improve the user experience of the site. To fix the mobile menu, add the following CSS code in the theme customizer or theme options@ Media (maximum width: 980px){
.et_non_fixed_nav. Et_transparent_nav# main title,. et_non_fixed_nav. Et_transparent_nav# top header,. Et_fixed_nav# main title,. Et_fixed_nav# top header{
Position: fixed! Important;} For more information on how to pin menus in divi, see this guide. 2. Adding other logos in mobile mode may be useful in cases where it is difficult to get the correct values, as this will create a complete sort for the mobile menu. Replace the original logo only on mobile devices and use other logos in a more appropriate size. To use another logo on your mobile device, first upload the logo image on the website. Media > add and upload images. Male then navigate to the library tab and select the image. If you have uploaded an image, you can open media > library. Now select the image and copy the file URL. Finally, add and publish the following custom CSS in the theme customization program under \
\/*Change the movement flag to the specified image**
#Logo{
Content: URL(“ http:\/\/site.com\/logo.png \
}
} 3. Hide the logo in the move header. If there is a problem matching the desktop and move menu, you can make it different and completely hide the logo in the move. This may be a good option for some sites, but other clues must be provided so that users can identify your site without a logo. To hide the logo from the mobile menu, navigate to shapes > Customize on the WordPress dashboard and open the theme customization program. Then go to move style > move menu. Select and publish the hide logo image option. That’s all! The logo is hidden on mobile devices. The main conclusion is that the website is beautiful and it is very important to run on all types of equipment. By matching desktop and mobile menus, you can improve site navigation and provide a better experience for visitors. This guide shows the different steps to use the same menu on your desktop and mobile device. Single page
Alternatively, see how to configure and edit the entire site using CSS. We also provide some tips to customize the mobile menu. Considering that almost half of the Internet traffic is mobile, this may have a huge impact on the site. For more information about divi topics or builders, see the following guidelines: The method of customizing the divi menu with CSS divi title creation (fixed \/ fixed) the method of hiding and deleting footnotes in divi. Does the desktop and mobile menu of the site match? Any questions after the tutorial? Please let us know in the comments section below!