Over the last few months across a bunch of sites I read articles on I’ve noticed that they had a really nice fixed social sharing bar at the bottom of their pages, because I really liked the style and have had a few clients lately who have wanted to focus on creating some content I decided to try to achieve this style with the Monarch Plugin (You can see the result of this idea at the bottom of the screen) so today I’m going to help you achieve this style.
Setting up monarch:
If you don’t have Monarch installed then you should install it now, so that we can begin to setup our social sharing bar.
You need to pick 5 main social media channels that you would want for your content to be shared on. Once you have selected your 5 social media channels, we are going to click on the inline location and set the social sharing bar up.
These are the setting you will need for the sharing bar, you can also choose which post types you want to display it on.
- Choose location: Below content
- icon alignment: Left
- Number of Columns: 6
- Display share count: No
- Display total Shares: Yes
- Display network name: Yes
- Display “all networks” button: Yes
First thing we are going to align is the container which holds the bottom social sharing bar to the bottom of the page
Next, we want to make the total share count and the social buttons sit next to each other instead of being stacked on top of one another so let’s add the following CSS classes
Now the next thing we need for desktop is to make the total count look nicer, for me I just wanted to center the total counts text.
The only problem now is that the bar will be covering our footer, so to fix this we just need to add a margin-bottom to our footer.
Next, we going to start to make the bar more responsive on smaller screen sizes.
Let’s start with some CSS for tablets, first thing we going to do is add a media query for just tablets, All the tablet CSS is going to inside this media query
The main thing we going to do on tablet and mobile will be hiding certain buttons, to make sure everything fit nicely
Monarch Social buttons CSS classes
To do this you will need to add this CSS class “.et_social_inline_bottom” and one of the above monarch classes and if you adding more after the class you will need to add “,” at the end at the end, if you’ve used the same social network as our site you can copy the code as is.
So first let’s hide 4 of the social buttons which you don’t consider the most important for your brand, for us Facebook and Twitter are the most important social networks to use, so these are the two buttons that I want to display.
Now we will need make our buttons take up more of the empty space and change it alignments, so that the buttons are on the right hand side of screen.
All that left now is to make our social sharing bar to work well on mobile phones, once we’ve done this our new social media bar will be completed.
Let’s add a media query for our mobile CSS to go in
On mobile we are going to hide all of our button except the show all button, so let’s start adding our mobile CSS.
And then we just need to align our button to the edge and change the button size.
The thing we need to do is make sure our footer is still visible on mobile devices.