Tagged: x
-
AuthorPosts
-
August 26, 2016 at 3:50 pm #1148776
macaylaParticipantHello,
I’d like to center the navbar menu, but only on one page. I am using
.page-id-2 .x-navbar .x-brand {
display: none;
}to hide the logo on my home page, and I’d like the menu to be centered.
url, http://www.sattvadubuque.comthanks in advance,
August 26, 2016 at 9:15 pm #1149171
Rue NelModeratorHi There,
Thanks for writing in! To center the navbar menu in your homepage, please add the following css code in the customizer, Appearance > Customize > Custom > CSS
.page-id-2 .masthead-inline .desktop .x-nav { display: block; float: none; } .page-id-2 .masthead-inline { text-align: center; display: block; margin: 0 auto; width: auto; } .page-id-2 .masthead-inline .x-nav-wrap.desktop { display: inline-block; }We would loved to know if this has work for you. Thank you.
August 26, 2016 at 10:45 pm #1149253
macaylaParticipantYes! Thank you! The only problem is that now the menu doesn’t disappear when the screen size shrinks. The collapsible menu appears, but the menu doesn’t disappear.
August 27, 2016 at 1:08 am #1149345
ChristopherModeratorHi there,
Please update this code :
.page-id-2 .masthead-inline .x-nav-wrap.desktop { display: inline-block; }To :
@media (min-width:979px){ .page-id-2 .masthead-inline .x-nav-wrap.desktop { display: inline-block; } }Hope it helps.
August 29, 2016 at 1:35 pm #1152174
macaylaParticipantYes! Thank you 🙂
August 29, 2016 at 2:29 pm #1152256
JoaoModeratorYou are welcome 🙂
Let us know if you need help with anything else.
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1148776 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
