- AuthorPosts
- October 4, 2018 at 2:52 pm #29125
dazzastark
GuestHello,
Using the BoldGrid theme Cobalt for Consulting (not marketing) and need to Center the logo and “burger” menu for small mobile devices. I tried changing the CSS but no avail. Could someone help?
October 5, 2018 at 1:17 pm #29126BoldGrid Contributor
GuestYou add the following to achieve this:
@media (max-widht: 768px) {
.site-title img,
button.navbar-toggle{
display: flex !important;
flex-direction: column !important;
margin: auto !important;
}
}
October 5, 2018 at 2:06 pm #29127dazzastark
GuestThanks, this worked for the logo but not the menu.
Any suggestion for the “burger” menu button (collapsed and open)?
October 5, 2018 at 2:28 pm #29128BoldGrid Contributor
GuestSorry for the inconvenience. Would you be comfortable providing the domain having this issue? There may be interferring code from another plugin or custom setting.
October 5, 2018 at 4:14 pm #29129dazzastark
Guestnorbar.ca
October 19, 2018 at 2:52 pm #29130BoldGrid Contributor
GuestThanks for the URL and I apologize for the long wait. Unfortunately, I’m unable to see past the under construction page. Do you have an URL which shows the issue?
December 3, 2018 at 3:50 pm #29131dazzastark
GuestSorry for the delay. Please try the URL: norbar.ca again on a smaller responsive device to see the issue.
December 3, 2018 at 5:12 pm #29132carlosd
GuestUsing the Google Dev Tools I found the elements:
.palette-primary .navbar-default .navbar-toggle, .palette-primary
and constructed the following CSS code to make it more responsive:
@media (max-width: 768px) { .palette-primary .navbar-default .navbar-toggle, .palette-primary { display: flex !important; flex-direction: column !important; margin: auto !important; } }
You can use that to try and modify the CSS, however, making customizations to the theme through the CSS is not ideal and may be overwritten during updates to your theme. If that occurs you can simply reapply the CSS through the Editor.
I hope this helps!
Sincerely,
Carlos D
December 4, 2018 at 3:25 pm #29133dazzastark
GuestTried this and something is not taking.
I am using boldgrid and the custom css section in the customizer.
December 4, 2018 at 5:11 pm #29134christopherm
GuestI’d recommend targeting the element using your browser’s developer tools. That way you can try CSS code live.
- AuthorPosts
- The topic ‘How can I centre my logo and “burger” menu for small mobile devices?’ is closed to new replies.