How to Add Image Icons to Your WordPress Navigation Menu Items Using cPanel

How to Add Image Icons to Your WordPress Navigation Menu Items Using cPanel

If you have seen icons in a navigation menu, you may also wonder to use them on your WordPress website. But the problem occurs when you require coding skills.

If you’re a newbie, you can install and activate a plugin to use any of the icons from the Font Awesome library. But if you know a little bit of CSS, you can add image icons to your WordPress navigation menu items in no time.

The question arises if you need cPanel access or not. Well, in this tutorial, you need to add custom CSS. You can either use the default CSS editor from your admin area or the additional CSS space in the customizer.

Although most of the WordPress experts hide the theme editor for security purpose, so you can use the built-in customizer if you wish.

In this tutorial, I am going to provide you an example of the code to make you understand the concept, adding CSS is on you.

It’s because every person has a different method to add custom CSS.

Upload Icon Images to Your Media Library

First of all, you have to download icon images on your computer. Upload those images to your WordPress media library.

If you’re wondering to use icons instead of images, you have to integrate a third-party icon library, which increases the HTTP requests. So, I am going to offer you a simple solution, which doesn’t impact the page loading time of a website.

Now, follow the steps.

Step 1:

Go to Appearance>>Menus in your wp-admin area, where you can see the current menu.

How to Add Image Icons to Your WordPress Navigation Menu Items

Step 2:

Now, if you see closely at the top-right corner, you can find a “Screen Options” link.

You can see a mega drop-down menu.

How to Add Image Icons to Your WordPress Navigation Menu Items

Under the “Show advanced menu properties” heading, you can see a box to check for CSS Classes, check it.

Step 3:

Now scroll down and open any menu item. Let’s say “Home.”

How to Add Image Icons to Your WordPress Navigation Menu Items

You can see a field to fill in under CSS Classes (optional). Let’s add “menuicons” as the CSS class. Click on the Save Menu button.

Step 4:

To make an icon image appear, you need some CSS. Let me show you an example.

.menuicons {
background-image: url('http://www.yoursite.com/wp-content/uploads/2018/06/home.png');
background-repeat: no-repeat;
background-position: left;
padding-left: 5px;
}

Note: Don’t forget to replace the image URL with the address you pick from your media library.

Let me show you from where you can copy it. Go to your media library, click on the icon image you want to display, copy the address you see in front of URL.

How to Add Image Icons to Your WordPress Navigation Menu Items

Here, I have shown you to add an image icon only for one menu item. For each menu item, you have to choose a different class and a new CSS code with the URL of that particular image icon.

Here is demo of the image icon I just added for the home icon.

How to Add Image Icons to Your WordPress Navigation Menu Items

As I have discussed earlier, there are different ways to add custom CSS. If you don’t want to load CSS from another source than your main CSS file, you can use FTP or cPanel to edit it.

Go to File Manager>> wp-content>> themes>> Theme Folder>> style.css, right-click and choose edit.

Almost every WordPress hosting offers cPanel access.

Add Image Icons to WordPress Navigation Menu Items

For many WordPress users, modifying the existing website’s layout can be scary because they might not have expertise in CSS.

But as you can see, you only require the basic understanding of CSS to set an image icon as a background image and adjust its position.

Conclusion

If you still think dealing with CSS can be hard, you should use a plugin then. Although following the steps you see above isn’t difficult.

I hope you can add image icons to WordPress navigation menu items.

Check out these top 3 WordPress hosting services:

A2 Hosting
£1.50 /mo
Starting price
Visit A2 Hosting
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.8
  • Pricing
    4.0
IONOS
£0.77 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
Webdock
£0.80 /mo
Starting price
Visit Webdock
Rating based on expert review
  • User Friendly
    3.8
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.3
  • Pricing
    4.3

 

How to Add Particular Posts to the Navigation Menu in WordPress

This article will reveal the method of adding specific posts to the navigation m
less than a minute
Md. Ehsanul Haque Kanan
Md. Ehsanul Haque Kanan
Hosting Expert

How to Add a New Navigation Menu to Your WordPress Theme Using cPanel

Almost every WordPress theme has a default navigation menu. Som
less than a minute
Bruno Mirchevski
Bruno Mirchevski
Hosting Expert

How to Modify the Search URL Slug Using .htaccess for a Better SEO Score

This how-to guide provides a step by step process to modify the default search U
less than a minute
Bruno Mirchevski
Bruno Mirchevski
Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top