Move menu location when template doesn't allow for it
-
Hi there, I’d like to move the location of my social links menu, from the bottom of the page to the top, if at all possible. Can I do this via CSS?
The blog I need help with is: (visible only to logged in users)
-
-
And I’d like it to be underneath the main menu. I found this CSS code (below) which is helpful but places the social menu above the main menu. Thanks!
@media (min-width: 768px) {
.site {
margin-top: 50px;
}.social-navigation {
position: fixed;
top: 0;
left: 0;
text-align: center;
width: 100%;
}.admin-bar .social-navigation {
top: 32px;
}
} -
Hi @kaylarperry,
You could use the following CSS to bring the social menu just below your site’s main menu:
@media (min-width: 768px) { .social-navigation { border-top: 0; position: absolute; top: 30px; left: 0; text-align: center; width: 100%; } }You can increase/decrease the value of top and left in the above snippet to further experiment with the positioning of the menu.
Let me know how that goes or if you’d like any further guidance.
-
Hi there,
Apologies for not spotting that in my testing! Adding a high z-index should resolve the issue.
Can you please try:
@media (min-width: 768px) { .social-navigation { border-top: 0; position: absolute; top: 30px; left: 0; text-align: center; width: 100%; z-index: 9999; } }Thanks!
-
-
- The topic ‘Move menu location when template doesn't allow for it’ is closed to new replies.