WordPress tip: How to change the mobile menu icon of WordPress site?
Categories :
The mobile menu icon is an element in the webpage. We can change an element by customizing the Theme’s CSS (Cascading Style Sheets).
- Inspect the mobile menu class by using the developer tools of the browser (Press F12 if you are using Google Chrome)
- Find the mobile menu icon element by using the “Inspect” tool
- Select the mobile menu icon. The HTML code fragment of the mobile menu will be shown on screen.
- Look for the class of the mobile menu icon element. (It might be something like ‘mobile-menu-icon’ or similar)
- Go to WordPress Dashboard
- Navigate to “Appearance” > “Customize”
- Go to the “Additional CSS” session
- Add custom CSS as below (here use mobile-menu-icon class as an example) and save changes.
.mobile-menu-icon::before {
font-family: "Font Awesome 5 Free"; font-weight: 900; content: "\f002";
color: black;
}