Tagged: x
-
AuthorPosts
-
January 24, 2017 at 5:24 pm #1343865
tipul01ParticipantHello,
I tried the following code form this forum to make the logo be in the middle of the navbar, but maybe it interferes somehow with the ubermenu plugin, making the picture not show? Its just the word LOGO, i wrote in the menu builder.
test.digitalcube.ro/Word
@media (min-width: 980px) {
.x-logobar {
display: none !important;
visibility: hidden !important;
}
.x-navbar .desktop .x-nav > li.logo-menu-item > a {
text-indent: -99999px;
text-align: left;
width: 306px;
height: 62px;
background: url(http://test.digitalcube.ro/Word/wp-content/uploads/2017/01/CUB.png) no-repeat center center;
background-size: contain;
}
}Thank you,
SebastianJanuary 25, 2017 at 12:39 am #1344309
RupokMemberHi there,
Thanks for writing in! Your code is for X menu but you have switched to Ubermenu. Let’s update the code to following :
@media (min-width: 980px) { .x-logobar { display: none !important; visibility: hidden !important; } .x-navbar .ubermenu-main .ubermenu-nav > li.logo-menu-item > a { text-indent: -99999px; text-align: left; width: 306px; height: 62px; background: url(http://test.digitalcube.ro/Word/wp-content/uploads/2017/01/CUB.png) no-repeat center center; background-size: contain; } }Hope this helps.
January 25, 2017 at 4:17 am #1344456
tipul01ParticipantHello,
Million thanks!
It worked.
Is there any way to disable uber menu’s highlight of the logo item? I mean just turn off the highlight of one menu entry/link?
And is there an option or css code to centre the rest of the menu to that of the logo? Right now they are aligned to the bottom of the logo.
Thank you!!!!!!
January 25, 2017 at 8:07 am #1344700
ThaiModeratorHi There,
Please also add the following CSS:
@media (min-width: 980px){ #menu-item-2388 a:hover { background: url(http://test.digitalcube.ro/Word/wp-content/uploads/2017/01/cub.png) no-repeat center center; background-size: contain; } }Hope it helps 🙂
January 25, 2017 at 3:02 pm #1345245
tipul01ParticipantSuper thank you for the highlight hover.
Can you direct me how to center the menu items to the logo? or vice-versa? Right now they are aligned at the bottom, but i would like for the buttons to be aligned to the center of the logo menu item?
Thank you.
test.digitalcube.ro/Word
January 25, 2017 at 7:01 pm #1345614
NicoModeratorHi There,
First, you need to increase your navbar height. In your customizer > Header > Navbar height.
After increasing it, add this in your Customizer > Custom > CSS:
.ubermenu-item-2388 a{ margin-bottom: -13px; /*adjust this to achieve center of your logo*/ }Hope it helps.
Let us know how it goes.
Thanks.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1343865 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
