Archived topic
Lightweight social icons positions on tablet and mobile
5 replies · Started by Jorge on November 15, 2019
Hi there,
I can't find a solution to my issue so I have to ask:
1 - How can I position on the right side and aligned with the logo the icons on tablet?
2 - How can I not show the icons on mobile, and just show them on the off-canvas panel?
Thanks!
Hi there,
1. try this CSS:
@media (max-width: 768px) {
.inside-header {
display: flex;
align-content: center;
}
.site-logo {
order: -1;
margin-right: auto;
}
.header-widget {
margin-bottom: 0 !important;
margin-right: 20px;
position: relative;
bottom: -5px;
}
}
@media (max-width: 560px) {
.header-widget {
display: none;
}
.site-logo {
margin-left: auto;
}
}
2. In Appearance > Widgets you can add the Social Icons to the Off Canvas Widget area.
Hi David,
Thanks a lot! it works pretty well the only thing is that now the logo on mobile is not centered.
How can I center it, please?
Regards
I edited the CSS above to center logo on the smaller devices.
Cool David! thanks, it works.
Regards
You're welcome