As you know social media is really an important part of a website. It is a way to get spread. Social media icons in the navigation bar are directly viewable by the visitors, it will increase the chances to get shared.
So, how to add social media icons in the navigation bar?
From here I am writing two methods to get it done.
Method 1 - From CSS
It is a really easy method, just you need to follow the below steps
1. Obviously, you will need social media icons, so download 32x32 size of icons.
2. Go to the Appearance > Menus.
3. Open screen options panel located at the top right corner.
4. Enable CSS Classes by selecting the checkbox.
5. Now create custom menus for social links.
6. Enter custom CSS classes in the given textbox.
7. Following are the custom CSS classes used to add and align icons. Add these codes to the style sheet.
That's it, you can see them on the frontend.
Method 2 - From Plugin
This is an another way. Menu Social Icons is a useful plugin to add social icons in the navigation bar. It is not too different from the above steps. Let's see:
1. Install the plugin.
2. In the Appearance > Menus, locate the pane Links
3. Click on any icon that you want to add to the navigation. You will find that URL and Link Text will be filled automatically. Now add it to the menu.
That's it.
I think these two methods are too easy to implement on any WordPress theme. Hopefully, it will help you.
So, how to add social media icons in the navigation bar?
From here I am writing two methods to get it done.
Method 1 - From CSS
It is a really easy method, just you need to follow the below steps
1. Obviously, you will need social media icons, so download 32x32 size of icons.
2. Go to the Appearance > Menus.
3. Open screen options panel located at the top right corner.
4. Enable CSS Classes by selecting the checkbox.
5. Now create custom menus for social links.
6. Enter custom CSS classes in the given textbox.
7. Following are the custom CSS classes used to add and align icons. Add these codes to the style sheet.
.social-icons
{
width: 45px;float: right !important;
padding: 0 !important;
height: 32px;
width: 32px;
margin-left: 10px !important;
}
.class-facebook, .class-facebook:hover
{
background: url(images/facebook.png) no-repeat right !important;
}
.class-twitter, .class-twitter:hover
{
background: url(images/twitter.png) no-repeat right !important;
}
.class-gplus, .class-plusone:hover
{
background: url(images/plusone.png) no-repeat right !important;
}
.social-icons a
{
opacity: 0;
}
{
width: 45px;float: right !important;
padding: 0 !important;
height: 32px;
width: 32px;
margin-left: 10px !important;
}
.class-facebook, .class-facebook:hover
{
background: url(images/facebook.png) no-repeat right !important;
}
.class-twitter, .class-twitter:hover
{
background: url(images/twitter.png) no-repeat right !important;
}
.class-gplus, .class-plusone:hover
{
background: url(images/plusone.png) no-repeat right !important;
}
.social-icons a
{
opacity: 0;
}
That's it, you can see them on the frontend.
Method 2 - From Plugin
This is an another way. Menu Social Icons is a useful plugin to add social icons in the navigation bar. It is not too different from the above steps. Let's see:
1. Install the plugin.
2. In the Appearance > Menus, locate the pane Links
3. Click on any icon that you want to add to the navigation. You will find that URL and Link Text will be filled automatically. Now add it to the menu.
That's it.
I think these two methods are too easy to implement on any WordPress theme. Hopefully, it will help you.
3 Comment
Excellent information. Thank you for sharing. I downloaded the icons and how to put them, did not know. Maybe someone will come in handy free vector social media icons here I found a cool icons, now I want to replace all the old icons. I like to refresh my interfaces.
BalasThanks
BalasThank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. portfolio WordPress theme
Balas