WordPress dashicons offer plenty of benefits. Find out how to use them to your advantage.
At Bobcares, we offer solutions for every query, big and small, as a part of our WordPress Support Services.
Let’s take a look at how our WordPress Support Team is ready to help customers with WordPress dashicons.
What are WordPress dashicons?
Dashicons can be described as a set of font icons. Although it is available by default for WordPress on the back-end, we can also use it on the front-end by enqueueing it. Many people tend to mistake Dashicons for Image icons. Although WordPress Dashicons may resemble image icons, they are not actual images.
In fact, let’s take a look at the different advantages of using WordPress Dashicons:
- It is scalable just like texts.
- It is lightweight and thereby does not affect page loading speed.
- We can change the dashicon color via CSS.
- It reduces HTTP requests since fonts are loaded at the same time.
- WordPress Dashicons are easier to use and adjust than images.
- They offer better accessibility.
We can use the dashicons on:
- Navigation menus
- WordPress dashboard
- Pages and posts
- Editor elements
- Metadata
- Admin panels
- Custom plugins and themes
- Front-end design
Furthermore, dashicons are already included in WordPress by default since version 3.8. However, we still have to include them in order to display them properly on our website.
- To begin with, load the functions.php file by heading to Editor, in the Appearances section and clicking on the file.
- Next, scroll to the bottom of the functions.php file and paste the following lines of code:
add_action( 'wp_enqueue_scripts', 'load_dashicons_front_end' ); function load_dashicons_front_end() { wp_enqueue_style( 'dashicons' ); }
- Then, we will head to the dashicons website and pick an icon that meets our requirements. Next, click on the Copy HTML button to access the code which we have to copy.
- After that, navigate to Appearance > Menus in the WordPress dashboard and paste the code from the earlier step next to Navigation Label.
Additionally, we can type it after the closing div bracket if we want the word to show up.
- Next, click save and reload the home page to view the dashicon.
[Need assistance with a different issue? We are available 24/7.]
Conclusion
In a nutshell, our skilled WordPress Support Engineers at Bobcares took us through WordPress dashicons.
PREVENT YOUR SERVER FROM CRASHING!
Never again lose customers to poor server speed! Let us help you.
Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.
0 Comments