<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPWife &#187; menu icons wordpress</title>
	<atom:link href="http://www.wpwife.com/category/menu-icons-wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wpwife.com</link>
	<description>WPHelp: fix and optimise WP themes&#38;plugins</description>
	<lastBuildDate>Fri, 21 Nov 2025 12:00:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.38</generator>
	<item>
		<title>How to Add Image Icons With Navigation Menus in WordPress</title>
		<link>http://www.wpwife.com/wordpress-plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress</link>
		<comments>http://www.wpwife.com/wordpress-plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress#comments</comments>
		<pubDate>Sun, 05 Mar 2023 11:53:00 +0000</pubDate>
		<dc:creator><![CDATA[Editorial Staff]]></dc:creator>
				<category><![CDATA[images in menu wordpress]]></category>
		<category><![CDATA[menu icons wordpress]]></category>
		<category><![CDATA[navigation menu icons]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[wpcode]]></category>

		<guid isPermaLink="false">http://www.wpbeginner.com/?p=24620</guid>
		<description><![CDATA[
<p>Do you want to add image icons to your WordPress navigation menus? Images can help visitors understand your site&#8217;s navigation at a glance. You can even use icons to highlight the menu&#8217;s most important content or call to action. In this article, we will show&#8230;&#160;<strong><a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/">Read More &#187;</a></strong></p>
<p>The post <a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/">How to Add Image Icons With Navigation Menus in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Do you want to add image icons to your WordPress navigation menus?</p>



<p>Images can help visitors understand your site&#8217;s navigation at a glance. You can even use icons to highlight the menu&#8217;s most important content or call to action. </p>



<p>In this article, we will show you how to add image icons to navigation menus in WordPress.&nbsp;</p>



<figure class="wp-block-image size-full"><img width="680" height="385" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/how-to-add-image-icons-with-navigation-menus-in-wordpress-og-1.png" alt="How to add image icons to navigation menus in WordPress" class="wp-image-170527" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/how-to-add-image-icons-with-navigation-menus-in-wordpress-og-1.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/how-to-add-image-icons-with-navigation-menus-in-wordpress-og-1-300x170.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<h4><strong>Why Add Image Icons With Navigation Menus in WordPress?</strong></h4>



<p>Usually, <a href="https://www.wpbeginner.com/beginners-guide/how-to-add-navigation-menu-in-wordpress-beginners-guide/" title="How to Add a Navigation Menu in WordPress (Beginner’s Guide)">WordPress navigation menus</a> are plain text links. These links work for most websites, but they don’t always look interesting or engaging.&nbsp;</p>



<p>By adding image icons to the navigation menu, you can encourage visitors to pay attention to the menu and explore more of your site.</p>



<figure class="wp-block-image size-full"><img width="680" height="292" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/icons-navigation-menu.png" alt="An example of image icons in a WordPress navigation menu" class="wp-image-169374" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/icons-navigation-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/icons-navigation-menu-300x129.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If your menu has lots of different options, then image icons can make it easier for visitors to scan the content and find what they’re looking for. This can be an easy way to <a href="https://www.wpbeginner.com/beginners-guide/how-to-increase-pageviews-and-reduce-bounce-rate-in-wordpress/" title="How to Increase Pageviews and Reduce Bounce Rate in WordPress">increase pageviews and reduce bounce rate in WordPress</a>.&nbsp;</p>



<p>You might even use an image icon to highlight the most important menu item, such as the Checkout link on your <a href="https://www.wpbeginner.com/wp-tutorials/how-to-create-an-online-marketplace-using-wordpress/" title="How to Create an Online Marketplace using WordPress">online marketplace</a>.&nbsp;</p>



<figure class="wp-block-image size-full"><img width="680" height="234" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/checkout-image-icon.png" alt="An example of an image icon on an eCommerce site" class="wp-image-169376" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/checkout-image-icon.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/checkout-image-icon-300x103.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>By highlighting a <a href="https://www.wpbeginner.com/plugins/how-to-add-buttons-in-wordpress-without-using-shortcodes/" title="How to Add Call to Action Buttons in WordPress (without Code)">call to action</a> in the menu bar, you can often get more signups, sales, members, and other conversions. </p>



<p>With that being said, let’s see how you can add image icons to your WordPress navigation menu. Simply use the quick links below to jump straight to the method you want to use.</p>



<div class="wp-block-aioseo-table-of-contents"><ul><li><a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/#aioseo-method-1-add-image-icons-to-navigation-menus-using-a-plugin-quick-and-easy">Method 1: Add Image Icons to Navigation Menus Using a Plugin (Quick and Easy)</a></li><li><a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/#aioseo-method-1-add-icons-to-wordpress-menus-using-code-more-customizable">Method 2: Add Icons to WordPress Menus Using Code (More Customizable)</a></li></ul></div>



<h4 id="aioseo-method-1-add-image-icons-to-navigation-menus-using-a-plugin-quick-and-easy"><strong>Method 1: Add Image Icons to Navigation Menus Using a Plugin (Quick and Easy)</strong></h4>



<p>The easiest way to add image icons to your WordPress menus is by using the <a href="https://wordpress.org/plugins/menu-image/"  rel="noopener nofollow" title="The Menu Image WordPress plugin">Menu Image</a> plugin. This plugin comes with dashicon icons that you can add with just a few clicks.</p>



<figure class="wp-block-image size-full"><img width="680" height="228" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/icon-menu-example.png" alt="An example of a navigation menu, with image icons" class="wp-image-169154" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/icon-menu-example.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/icon-menu-example-300x101.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you have added Font Awesome icons to your website, then you can use them with this free plugin. For more information on how to set up Font Awesome, see our guide on <a href="https://www.wpbeginner.com/wp-themes/how-to-easily-add-icon-fonts-in-your-wordpress-theme-2/" title="How to Easily Add Icon Fonts in Your WordPress Theme">how to easily add icon fonts to your WordPress theme</a>.</p>



<p>If you want to use your own icon files, then Menu Image also lets you select an image or icon from the WordPress media library.</p>



<p>The first thing you need to do is to install and activate the <a href="https://wordpress.org/plugins/menu-image/"  rel="noopener nofollow" title="The Menu Image WordPress plugin">Menu Image</a> plugin. For more details, see our step-by-step guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Upon activation, click on Menu Image in the WordPress dashboard. On this screen, you can choose whether to get security and feature notifications or click on the ‘Skip’ button.</p>



<figure class="wp-block-image size-full"><img width="680" height="377" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/setup-menu-image.png" alt="How to add icons to a WordPress menu using a free plugin" class="wp-image-169155" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/setup-menu-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/setup-menu-image-300x166.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This will take you to a screen where you can configure the plugin’s settings. To start, you’ll see all the different sizes you can use for the image icons.</p>



<p>If you plan to use icons from Font Awesome or dashicons, then Menu Image will resize them automatically. However, if you use images from the media library, then you’ll need to select the size manually.</p>



<p>The plugin supports the default <a href="https://www.wpbeginner.com/beginners-guide/wordpress-image-sizes-beginners-guide/" title="Beginner’s Guide to WordPress Image Sizes (+ Best Practices)">WordPress image sizes</a>, such as thumbnail, image, and large. It also adds three unique sizes that are set to 24&#215;24, 36&#215;36, and 48&#215;48 pixels by default.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-image-sizes.png" alt="Changing the size of image icons in WordPress menus" class="wp-image-169156" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-image-sizes.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-image-sizes-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>These settings should work well for most websites, but you can make the icons bigger or smaller by typing in different numbers for 1st, 2nd, or 3rd Menu Image size.</p>



<p>When you’re adding icons to your menu, you’ll see an ‘image on hover’ field by default. This allows you to show a different icon when the visitor hovers over that menu item.</p>



<p>Just be aware this setting is only available when you’re using your own images. You don’t need to worry about the ‘image on hover’ feature if you plan to use dashicons or Font Awesome icons.</p>



<p>Showing a different icon can help visitors see where they are in the navigation menu. This is particularly useful if a menu has lots of different items. For example, you might use different colors or icon sizes to highlight the currently-selected menu item.</p>



<p>If you want to try different hover effects, then make sure you check ‘Enable the image on hover field.’</p>



<figure class="wp-block-image size-full"><img width="680" height="274" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/enable-image-hover.png" alt="Adding a hover effect to image icons in a WordPress menu" class="wp-image-169157" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/enable-image-hover.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/enable-image-hover-300x121.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, click on ‘Save Changes’ to store your settings.</p>



<p>To add icons to the navigation menu, head over to <strong>Appearance » Menus</strong>. By default, WordPress will show your site’s primary menu.</p>



<figure class="wp-block-image size-full"><img width="680" height="304" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-wordpress-menu.png" alt="Editing a WordPress navigation menu" class="wp-image-169158" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-wordpress-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-wordpress-menu-300x134.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>If you want to edit a different menu, then simply open the ‘Select a menu to edit’ dropdown and choose a menu from the list. After that, click on ‘Select.’</p>



<p>Now, find the first menu item where you want to add an icon and give it a click. Then, simply select the new ‘Add Image / Icon’ button.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-add-image.png" alt="Adding an image icon to a WordPress navigation menu" class="wp-image-169165" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-add-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-add-image-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now decide whether to use your own image or choose an icon.</p>



<p>To use a ready-made icon, click on the radio button next to ‘Icons.’ You can then click to select any dashicon or Font Awesome icon.</p>



<figure class="wp-block-image size-full"><img width="680" height="372" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-dashicons-menu.png" alt="Adding a dashicon icon to a WordPress menu" class="wp-image-169166" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-dashicons-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-dashicons-menu-300x164.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Do you want to use your own images instead?</p>



<p>Then select the radio button next to ‘Image&#8217; and click the ‘Set Image’ link.</p>



<figure class="wp-block-image size-full"><img width="680" height="370" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-set-image.png" alt="Adding WordPress media library images to a navigation menu" class="wp-image-169167" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-set-image.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-set-image-300x163.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You can now either choose an image from the WordPress media library or upload a new file from your computer.</p>



<p>If you checked ‘Enable the image on hover field’ in the plugin’s settings, then you’ll also need to click on ‘Set image on hover.’</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/set-image-hover.png" alt="Adding an 'on hover' animation a WordPress image icon" class="wp-image-169168" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/set-image-hover.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/set-image-hover-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, choose an image to show when the user hovers over this menu item.</p>



<p>Sometimes, you may want to ignore this setting and show the same icon no matter what. To do this, click on ‘Set image on hover’ and then choose the exact same image.</p>



<p>If you don’t do this, then the icon will disappear when the visitor hovers over it.</p>



<figure class="wp-block-image size-full"><img width="680" height="360" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/hover-image-menu.png" alt="How to add image icons with navigation menus in WordPress" class="wp-image-169169" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/hover-image-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/hover-image-menu-300x159.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, open the Image Size dropdown and choose a size from the list. Using the same size for all icons tends to make the menu look more organized.</p>



<p>However, you might make the menu’s most important icon bigger. For example, if you’ve created an <a href="https://www.wpbeginner.com/wp-tutorials/how-to-start-an-online-store/" title="How to Start an Online Store (Step by Step)">online store</a> using a plugin like <a href="https://www.wpbeginner.com/wp-tutorials/woocommerce-tutorial-ultimate-guide/" title="WooCommerce Made Simple: A Step-by-Step Tutorial [+ Resources]">WooCommerce</a>, then you might use a bigger icon for ‘Checkout’ so it stands out.</p>



<p>When you’re happy with the icon, it’s time to look at the menu item&#8217;s label.</p>



<p>By default, the plugin shows the title label after the icon.</p>



<figure class="wp-block-image size-full"><img width="680" height="284" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-menu.png" alt="Customizing the navigation menus on your website or blog" class="wp-image-169171" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-menu.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-menu-300x125.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To change this, select any of the radio buttons in the ‘Title position’ section.</p>



<p>Another option is to remove the navigation label completely, creating an icon-only menu. This can prevent a menu with a lot of items from looking cluttered.</p>



<p>However, you should only hide the labels if it’s obvious what each icon means. If it’s unclear, then visitors will struggle to navigate your <a href="https://www.wpbeginner.com/start-a-wordpress-blog/" title="How to Start a WordPress Blog – Beginners Guide (UPDATED)">WordPress blog</a> or website.</p>



<p>To go ahead and hide the label, select the radio button next to ‘None.’</p>



<figure class="wp-block-image size-full"><img width="680" height="319" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-none.png" alt="Hiding the navigation labels on your menu" class="wp-image-169173" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-none.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/title-position-none-300x141.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>When you’re happy with how the menu item is set up, click on ‘Save Changes.’</p>



<p>To add an icon to other menu items, simply follow the same process described above.</p>



<p>When you’ve finished, don’t forget to click on the ‘Save Menu’ button. Now, if you visit your website you’ll see the updated navigation menu live.</p>



<h4 id="aioseo-method-1-add-icons-to-wordpress-menus-using-code-more-customizable"><strong>Method 2: Add Icons to WordPress Menus Using Code (More Customizable)</strong></h4>



<p>You can also add image icons to your navigation menus using custom CSS. This gives you more flexibility to control exactly where the icons appear in your menus.</p>



<p>However, it does require you to <a href="https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/" title="How to Easily Add Custom Code in WordPress (Without Breaking Your Site)">add custom code in WordPress</a>, so it’s recommended for more intermediate or advanced WordPress users.</p>



<figure class="wp-block-image size-full"><img width="680" height="205" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-images-navigation.png" alt="An example of a navigation menu with image icons" class="wp-image-169174" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-images-navigation.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-images-navigation-300x90.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Before you start, go ahead and upload all your image files to the WordPress media library. For each image, make sure you copy its URL and paste it into a text editor like Notepad. You’ll need to use the links in your code, so this can save you a lot of time.</p>



<p>To find an image’s URL, simply select it in the WordPress media library and then look at the ‘File URL’ field.</p>



<figure class="wp-block-image size-full"><img width="680" height="337" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/file-url-media.png" alt="Get the URL of an image in the WordPress media library" class="wp-image-169193" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/file-url-media.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/file-url-media-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>For more detailed instructions, please see our guide on <a href="https://www.wpbeginner.com/beginners-guide/how-to-get-the-url-of-images-you-upload-in-wordpress/" title="How to Get the URL of Images You Upload in WordPress">how to get the URL of images you upload in WordPress</a>.</p>



<p>After that, go to <strong>Appearance » Menus</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="342" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/wordpress-appearance-menus.png" alt="How to add a WordPress navigation menu to your site or blog" class="wp-image-169175" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/wordpress-appearance-menus.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/wordpress-appearance-menus-300x150.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, open the ‘Select a menu to edit’ dropdown and choose the menu where you want to add the image icons.</p>



<p>After that, go ahead and click on ‘Select.’</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-menu-wordpress.png" alt="Editing a menu on your website or blog" class="wp-image-169176" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-menu-wordpress.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/selecting-menu-wordpress-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Next, you need to enable custom CSS classes by clicking on ‘Screen Options.&#8217;</p>



<p>In the panel that appears, check the box next to ‘CSS Classes.’</p>



<figure class="wp-block-image size-full"><img width="680" height="290" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/enabling-custom-css.png" alt="Add custom CSS classes to your website" class="wp-image-169178" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/enabling-custom-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/enabling-custom-css-300x128.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>With that done, you can add custom CSS classes to any item in the navigation menu. This is how you will link each menu item to an image in the WordPress media library.</p>



<p>You can call these classes anything you want, but it’s a good idea to use something that helps you identify the menu item.</p>



<p>To get started, simply click on the first item you want to add an image icon to. In the ‘CSS Classes (optional)’ field, type in the class name you want to use.</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-css-class.png" alt="Adding custom CSS code to a menu" class="wp-image-169183" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-css-class.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/menu-css-class-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>You’ll use these custom CSS classes in the next step, so make a note of them in your Notepad or similar app.</p>



<p>Simply follow the same process to add a separate class to all your menu items. After that, click on ‘Save Menu’ to store your settings.</p>



<p><strong>Note:</strong> Each icon will be tied to its own CSS class, so be sure to label the menu items differently if you want to use separate icons.</p>



<figure class="wp-block-image size-full"><img width="680" height="387" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-menu-css.png" alt="Publishing a menu with image icons" class="wp-image-169184" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-menu-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-menu-css-300x171.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now you’re ready to add image icons to your WordPress navigation menus using CSS.</p>



<p>Often, WordPress tutorials will tell you to add code snippets to your <a href="https://www.wpbeginner.com/showcase/best-wordpress-themes/" title="Most Popular and Best WordPress Themes (Expert Pick)">WordPress theme</a> files. However, doing so may cause <a href="https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them/" title="Most Common WordPress Errors and How to Fix Them">common WordPress errors</a> and isn’t very beginner-friendly. </p>



<p>That’s why we recommend <a href="https://wpcode.com/"  title="WPCode - WordPress Code Snippet Plugin" rel="noopener">WPCode</a>.</p>



<p>WPCode is the most popular code snippets plugin used by over 1 million WordPress websites. It allows you to add custom code without editing your theme’s functions.php file.</p>



<p>The first thing you need to do is install and activate the <a href="https://wordpress.org/plugins/insert-headers-and-footers"  title="WPCode Free Code Snippet Plugin for WordPress" rel="noopener">free WPCode</a> plugin. For more details, see our step-by-step guide on <a href="https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/" title="How to Install a WordPress Plugin – Step by Step for Beginners">how to install a WordPress plugin</a>.</p>



<p>Upon activation, head over to <strong>Code Snippets » Add Snippet</strong>.</p>



<figure class="wp-block-image size-full"><img width="680" height="327" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/wpcode-add-snippet.png" alt="Adding a code snippet to your website using WPCode" class="wp-image-169190" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/wpcode-add-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/wpcode-add-snippet-300x144.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Here, simply hover your mouse over ‘Add Your Custom Code.’</p>



<p>When it appears, click on ‘Use snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="380" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-custom-snippet.png" alt="How to add custom snippets to a website or blog" class="wp-image-169191" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-custom-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/adding-custom-snippet-300x168.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>To start, type in a title for the custom code snippet. This can be anything that helps you identify the snippet in the WordPress dashboard.</p>



<p>With that done, open the ‘Code Type’ dropdown and select ‘CSS Snippet.’</p>



<figure class="wp-block-image size-full"><img width="680" height="347" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/image-menu-css.png" alt="Adding custom code to WordPress using WPCode" class="wp-image-169185" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/image-menu-css.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/image-menu-css-300x153.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>In the code editor, you’ll need to add some code for every icon you want to show.</p>



<p>To help you out, we’ve created a sample snippet below. You can go ahead and change &#8216;.carticon&#8217; to the custom CSS class you created in the previous step. You’ll also need to replace the URL with a link to the image in your WordPress media library:</p>


<div class="wp-block-syntaxhighlighter-code "><pre class="brush: css; title: ; notranslate">
.carticon {
background-image: url('http://localhost:10013/wp-content/my-media/cartcheckout.png');
background-repeat: no-repeat;
background-position: left;
padding-left: 5px;
}
</pre></div>


<p><strong>Note:</strong> You will need to keep the dot &#8216;.&#8217; in front of the CSS class in the code snippet. That&#8217;s what tells WordPress that it&#8217;s a class and not another kind of CSS selector.</p>



<p>You will need to adjust the snippet above for each individual menu item you created above. You can simply paste them all into the &#8216;Code Preview&#8217; field.</p>



<p>When you’re happy with your code, scroll to the ‘Insertion’ section. WPCode can add code to different locations, such as after every post, frontend only, or admin only.</p>



<p>You want to use the custom CSS code across our entire <a href="https://www.wpbeginner.com/guides/" title="How to Make a WordPress Website (Ultimate Guide)">WordPress website</a>, so click on ‘Auto Insert’ if it isn’t already selected.</p>



<p>Then, open the ‘Location’ dropdown menu and choose ‘Site Wide Header.’</p>



<figure class="wp-block-image size-full"><img width="680" height="301" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/auto-insert-code.png" alt="Inserting custom code across your website" class="wp-image-169192" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/auto-insert-code.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/auto-insert-code-300x133.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>After that, you’re ready to scroll to the top of the screen and click on the ‘Inactive’ toggle, so it changes to ‘Active.’</p>



<p>Finally, click on ‘Save Snippet’ to make the custom CSS live.</p>



<figure class="wp-block-image size-full"><img width="680" height="377" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-css-snippet.png" alt="How to add custom CSS code to WordPress easily" class="wp-image-169186" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-css-snippet.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/saving-css-snippet-300x166.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>Now, if you visit your website you’ll see all the image icons in your navigation menu.</p>



<p>Depending on your theme, you may need to tweak the CSS so it shows the image icons in exactly the right spot. If this is the case, then head to <strong>Code Snippets » Code Snippets</strong> in the WordPress dashboard.</p>



<p>Then, simply hover over the snippet and click on the ‘Edit’ link when it appears.</p>



<figure class="wp-block-image size-full"><img width="680" height="300" src="https://www.wpbeginner.com/wp-content/uploads/2018/10/editing-code-snippets.png" alt="Editing a code snippet using WPCode" class="wp-image-169188" srcset="https://www.wpbeginner.com/wp-content/uploads/2018/10/editing-code-snippets.png 680w, https://www.wpbeginner.com/wp-content/uploads/2018/10/editing-code-snippets-300x132.png 300w" sizes="(max-width: 680px) 100vw, 680px" /></figure>



<p>This opens the code editor, ready for you to make some changes.</p>



<p>We hope this article helped you learn how to add image icons to your WordPress navigation menu. You can also go through our guide on the <a href="https://www.wpbeginner.com/beginners-guide/best-drag-and-drop-page-builders-for-wordpress/" title="Best Drag and Drop WordPress Page Builders Compared">best drag-and-drop WordPress page builders</a> and <a href="https://www.wpbeginner.com/beginners-guide/make-money-online/" title="Proven Ways to Make Money Online Blogging with WordPress">how to make money online blogging with WordPress</a>.</p>



<p>If you liked this article, then please subscribe to our <a href="https://youtube.com/wpbeginner?sub_confirmation=1"  rel="noreferrer noopener nofollow" title="Subscribe to WPBeginner YouTube Channel">YouTube Channel</a> for WordPress video tutorials. You can also find us on <a href="https://twitter.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Follow WPBeginner on Twitter">Twitter</a> and <a href="https://facebook.com/wpbeginner"  rel="noreferrer noopener nofollow" title="Join WPBeginner Community on Facebook">Facebook</a>.</p><p>The post <a href="https://www.wpbeginner.com/plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/">How to Add Image Icons With Navigation Menus in WordPress</a> first appeared on <a href="https://www.wpbeginner.com/">WPBeginner</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.wpwife.com/wordpress-plugins/how-to-add-image-icons-with-navigation-menus-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="" length="0" type="" />
		</item>
	</channel>
</rss>
