Do you need to spotlight a menu merchandise in your WordPress web site?

Highlighting a menu merchandise can in reality permit you to level consumer’s consideration to a selected space in your menu. This will also be nice if you wish to spotlight the Pricing or Touch Us web page in your web site.

On this article, we can display you the best way to simply spotlight a menu merchandise in WordPress the use of CSS code.

How to Highlight a Menu Item in WordPress

Why Must You Spotlight a Menu Merchandise?

A navigation menu is a listing of hyperlinks pointing to vital spaces of your web site. They’re typically offered as a horizontal bar on the best of each web page on a WordPress web site.

This navigation menu is created via including other menu pieces. For extra main points, you’ll see our article on the best way to upload a navigation menu in WordPress.

A highlighted menu merchandise will also be an effective way to seize the consumer’s consideration on your maximum distinguished name to motion. The eyes of the guests might be routinely interested in the menu merchandise after they seek advice from your web site.

WPForms highlighted menu icon

By means of including this selection, you’ll create a user-friendly web site and spotlight vital menu pieces that you need your customers to try.

That being stated, let’s see how you’ll spotlight a menu merchandise in WordPress the use of CSS.

Way 1. Highlighting a Menu Merchandise The usage of Complete Web site Editor

If you happen to’re the use of a block-enabled theme you then’ll have the Complete Web site Editor as a substitute of the older Theme Customizer. You’ll be able to simply spotlight a menu merchandise in it as neatly.

First, head over to Look » Editor from the WordPress admin dashboard. This may increasingly direct you to the whole web site editor.

Right here merely double-click the menu merchandise you need to spotlight, after which click on the equipment icon on the best. This may increasingly in an instant open up that individual menu merchandise’s ‘Settings’ block.

Select the menu item you want to highlight and then click the gear icon at the top

Merely scroll down within the ‘Settings’ block to the ‘Complicated’ tab and click on the arrow icon beside it to amplify the tab.

This may increasingly open up an ‘Further CSS Elegance’ box the place you merely have to write down highlighted-menu within the box.

Write highlighted menu in Additional CSS Class field

Subsequent, click on the ‘Save’ button on the best of the web page to retailer your adjustments.

After that, it is important to upload a small little bit of CSS on your theme for the spotlight impact. You’ll be able to both repair the lacking Theme Customizer, or you’ll use a code snippet plugin so as to add CSS code.

How you can Upload CSS Snippets The usage of WPCode

For including CSS in WordPress, we suggest the use of WPCode as it’s one of the simplest ways so as to add any customized code to WordPress.

First you wish to have to put in and turn on the loose WPCode plugin. For extra directions, take a look at our information on the best way to set up a WordPress plugin.

Upon activation, navigate to Code Snippets » Upload Snippet out of your WordPress admin panel. Now click on at the ‘Upload New’ button.

Go to Code Snippets and click Add New

This may increasingly take you to the ‘Upload Snippet’ web page.

Right here, hover your mouse over the ‘Upload Your Customized Code (New Snippet)’ possibility and easily click on at the ‘Use Snippet’ button underneath it.

Click Use Snippet button

Now that you just’re at the ‘Create Customized Snippet’ web page, get started via opting for a reputation and a ‘Code Sort’ in your CSS snippet.

You’ll be able to make a choice any identify you favor.

Select Universal Snippet as Code Type

Subsequent, merely click on the dropdown menu beside the ‘Code Sort’ possibility at the proper after which make a choice the ‘Common Snippet’ possibility.

After that, replica/paste the next CSS code into the ‘Code Preview’.

You’ll want to come with the manner tags, as you spot on Traces 1 and 10 underneath.

Paste code

After pasting the code, pass to the ‘Insertion’ phase via scrolling down.

Right here merely make a choice the ‘Auto Insert’ mode in order that the code will also be routinely carried out on all of your web site.

Choose Auto Insert as insert method

Now, pass to the highest of the web page and toggle the transfer from ‘Inactive’ to ‘Lively’.

Then merely click on the ‘Save Snippet’ button.

Save your highlight menu item snippet

You may have now effectively highlighted a menu merchandise in WordPress the use of a complete web site editor.

That is how your menu merchandise will take care of you upload the CSS code.

Highlighted menu item

How you can Get right of entry to the Theme Customizer The usage of a Block Theme

If you wish to use the Theme Customizer and use an FSE theme, then merely replica and paste the URL underneath into your browser. Make sure you change ‘’ with your personal web site’s area identify.

Right here you merely need to click on the ‘Further CSS’ tab.

Click Additional CSS tab

Now, amplify the ‘Further CSS’ box, after which simply replica/paste the next code snippet.

/* Highlighted menu */
background: #FFB6C1;
border-radius: 35px;
padding: 0px 20px;
line-height: 50px;

After that, merely click on the ‘Put up’ button on the best.

Paste your CSS code

That’s all it takes to spotlight a menu merchandise.

It will have to glance one thing like this in your web site when completed:

Highlighted menu item

Way 2. Highlighting a Menu Merchandise The usage of Theme Customizer

If you happen to’re the use of a non-block-enabled theme, you then’ll almost certainly have a theme customizer enabled via default. Highlighting a menu merchandise in a theme customizer is a quite easy procedure.

First, merely pass to Look » Customise for your WordPress dashboard to release the theme customizer. As soon as the theme customizer opens up, merely click on at the ‘ Menus’ tab.

Go to Menu in Theme Customizer

If you’re within the ‘Menus’ phase, merely click on at the equipment icon on the best proper to show complex houses.

Now, merely take a look at the ‘CSS Categories’ field.

Check CSS Classes box

After that, scroll all the way down to the ‘Menus’ phase.

In case you have more than one menus in your web site, merely click on at the menu whose menu pieces you need to spotlight.

Select a menu

This may increasingly open up a brand new tab the place you’ll make a selection the menu merchandise that you need to spotlight. It might be ‘Get Began’ like in our instance, or it may well be your touch shape web page or the hyperlink on your on-line retailer.

Merely click on at the menu merchandise of your selection which is able to amplify it to show some choices. Click on into the ‘CSS Categories’ box.

All you need to do is write 'highlighted-menu' within the box. You’ll be able to upload this CSS Elegance to more than one menu pieces, and they’ll all be highlighted.

Write highlighted menu as CSS Class

Subsequent, merely pass to the ‘Further CSS’ tab within the theme customizer.

Now, merely replica and paste the next CSS code.

/* Highlighted menu */
background: #FFB6C1;
border-radius: 35px;
padding: 0px 20px;
line-height: 50px;

Congratulations! You’ve effectively highlighted a menu merchandise.

Notice: Your theme may now not have an ‘Further CSS’ box within the theme customizer. If now not, take a look at theme settings to learn the way so as to add customized CSS. If you’ll’t in finding it, chances are you’ll need to touch the developer or upload it the use of WPCode.

Paste CSS code in Additional CSS tab

Customizing Your Menu Merchandise Spotlight

Now that you’ve highlighted the menu merchandise, you’ll modify the CSS code to customise your menu merchandise the best way you adore it.

For instance, you’ll alternate the background colour of your menu merchandise.

Pink highlighted menu item

Merely search for the next code within the CSS snippet, you simply pasted.

background: #FFB6C1

After finding it, you’ll merely change the red colour code quantity with the hex code of any colour of your selection:

background: #7FFFD4;

Above is the hex code for aquamarine.

Blue highlighted menu item

You’ll be able to take a look at our information to simply upload customized CSS for different concepts on the best way to customise the highlighted menu merchandise.

After you’re happy together with your alternatives, merely click on at the ‘Put up’ button within the theme customizer or ‘Save Snippet’ in WPCode to save lots of your adjustments.

We are hoping this text helped you discover ways to spotlight a menu icon in WordPress. You may additionally need to try our amateur’s information on the best way to taste WordPress navigation menus or our knowledgeable choices of the must-have WordPress plugins to develop your web site.

If you happen to appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You’ll be able to additionally in finding us on Twitter and Fb.

The submit How you can Spotlight a Menu Merchandise in WordPress first gave the impression on WPBeginner.

WordPress Maintenance

[ continue ]