Home › Forums › Weaver Xtreme Theme › Menu not centered
- This topic has 10 replies, 3 voices, and was last updated 11 months, 3 weeks ago by
scrambler.
-
AuthorPosts
-
September 13, 2025 at 23:07 UTC - Views: 58 #75935
I am sure it is something I have done, or not done. I did check center menu, but it is not…
I would like to center the menu on this site.
Also in mobile view I would like to show the logo centered at the top between the hamburger and search icons.
Any suggestions welcome.
-Daniel
September 14, 2025 at 00:55 UTC - Views: 60 #75936scrambler
ModeratorFor the centering, I am not sure where it comes from, but there is custom CSS doing that (rule below)
.is-menu-desktop .wvrx-center-menu {margin-left:180px;display:block;}
Check all your custom CSS, but if you dont find where it comes from to delete/override it, you can add the one below in the Theme Global Custom CSS Rule box
.is-menu-desktop .wvrx-center-menu {margin-left:0 !important;display:inline-block !important;}
Regarding the logo on mobile there is a lot of custom CSS going on….
First the logo is not visible because of a rule
.is-mobile .menu-primary .custom-logo-on-menu img {visibility:hidden;}So that would first have to go
Then you can add the rules below to the theme global custom CSS rule box.
If you have existing custom CSS rules with the same selector and property but a different value, you can just change them in your rule..menu-primary .custom-logo-on-menu img {display:inline-block !important;}
.menu-primary .custom-logo-on-menu {
margin: 0;
text-align: center;
width: 80%;
display: inline-block;
}If it does not work, leave these rules in place and post back so we can see what needs changing
The empty space below can be reduced with
@media screen and (max-width: 767px) {.is-menu-default .wvrx-menu-container {padding-bottom:0}}September 14, 2025 at 03:53 UTC - Views: 66 #75937dosolutions
ParticipantOK, I now have the menu text centered, thanks – but when I scroll, then it is aligned left not full width.
I now also have the logo displayed correctly on mobile view, but would like to only see that logo (fade in) on scroll, since it is also in the header image.
And yes I would like less space below the hamburger menu on mobile, it seems to grow on scroll.
This did not seem to do anything.
@media screen and (max-width: 767px) {.is-menu-default .wvrx-menu-container {padding-bottom:0}}
September 14, 2025 at 05:18 UTC - Views: 46 #75938scrambler
ModeratorTry to set the menu to Align: full, so it does not shrink
I will look at the rest tomorrow
September 14, 2025 at 16:00 UTC - Views: 40 #75939scrambler
ModeratorActually I meant to use the following alignment option for the menu
Align > Align Full Items center
September 14, 2025 at 16:06 UTC - Views: 43 #75940scrambler
ModeratorRegarding animating the opacity of the logo image when the menu fixes, this is explained in a guide article below
“Fixed to Top on Scroll” Menus: Customization – Weaver Xtreme Guide
In your case that would translate to the following rules
/* Rule to set the transition speed for logo opacity */
.wvrx-menu-container .custom-logo-on-menu img {
transition: opacity .5s ease;
}/* Rule to set the image opacity before and after the menu fixes */
.is-mobile .wvrx-menu-container .custom-logo-on-menu img {opacity:1;}
.is-mobile .wvrx-menu-container.wvrx-fixonscroll .custom-logo-on-menu img {opacity:0}September 14, 2025 at 16:12 UTC - Views: 41 #75941scrambler
ModeratorRegarding the space, you need to crop the logo image to remove all the white under the image itself.
If that is not enough, you could add the rule below, but negative margin can be unreliable, so the above is to be done first
.menu-primary .custom-logo-on-menu {margin-bottom:-10px;}
September 14, 2025 at 16:50 UTC - Views: 33 #75942User
ModeratorAs to Scrambler’s comment, the “sm-logo-trans-1.png” logo image has a clear background, but that background area needs to be cut to about zero.
At the moment, the bottom 30% of the image comprises just clear background and that is causing your white space the issue.
September 15, 2025 at 13:18 UTC - Views: 19 #75945dosolutions
ParticipantYep, align full / items centered.
thanks
September 15, 2025 at 13:32 UTC - Views: 26 #75946This reply has been accepted as the best answer.
OK I trimmed the image.
I like that it is actually larger – so the image size in mobile view in the menu area is controlled by some setting…
Now in mobile view when I scroll the logo vanishes. I would like it to appear on scroll. Do I have the opacity logic incorrectly set?
Why yes… that was it.
/* Rule to set the image opacity before and after the menu fixes */
.is-mobile .wvrx-menu-container .custom-logo-on-menu img {opacity:0;}.is-mobile .wvrx-menu-container.wvrx-fixonscroll .custom-logo-on-menu img {opacity:1}
Thanks everyone!
September 15, 2025 at 16:26 UTC - Views: 19 #75949scrambler
ModeratorThere is a setting for the size of the logo image on menu in the theme settings.
-
AuthorPosts
- You must be logged in to reply to this topic.

