Tagged: x
-
AuthorPosts
-
June 1, 2016 at 6:11 am #1019800
RifftParticipantHello guys,
I would like to customize one single menu item on my navbar.
For now, i succeed to change the background color with a class in the dedicated field in wordpress options,
but i don’t know how to change the color of the text and the text hover.> http://www.ct-band.com/en/ “Pre-order” item.
Also, i met a problem with the translation flag.
If you go on the french flag, before clicking on it, you’ll see a purple line on the top of the item.How can i delete this space ? Or change the color to white ?
You’ll find my credentials in the next post.
Thanks a lot.
June 1, 2016 at 6:13 am #1019801
RifftParticipantThis reply has been marked as private.June 1, 2016 at 6:32 am #1019829
DarshanaModeratorHi there,
You can add this under Custom > CSS in the Customizer.
.precommande span { color: #336699; } .precommande a:hover span { color: #ffffff; }Flag color is coming from the following custom CSS rule that you have added.
.x-navbar .desktop .x-nav > li > a:hover, .x-navbar .desktop .x-nav > .x-active > a, .x-navbar .desktop .x-nav > .current-menu-item > a { box-shadow: 0 4px 0 0 #383f77 inset; }Hope that helps.
June 1, 2016 at 7:31 am #1019921
RifftParticipantThanks a lot, it’s perfect.
One more question, is there a way to have a different “Navbar Top Link Spacing” (space between menu items) in the french version and in the uk version ?
My goal is to reduce the space between menu items in the french version.
Thanks a lot, your support is so helpful.
June 1, 2016 at 7:59 am #1019953
Paul RModeratorHi,
You can add this under Custom > CSS in the Customizer.
:lang(fr) .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) { padding-left: 5px; padding-right: 5px; }Change 5px to achieve your desired spacing.
Hope that helps
June 1, 2016 at 9:59 am #1020141
RifftParticipantThanks a lot, it’s exactly what i wanted.
However, i have now a problem with the languague switch which is going over the preorder menu.
Do you have an idea about the css code to align exactly the two flags ?
And maybe reduce the white box around the second language ?Thanks a lot, one more time your help is amazing.
BR,
June 1, 2016 at 11:23 am #1020326
RupokMemberHi there,
Thanks for updating. This is what I am seeing on my end – http://prntscr.com/bb2qh3
So can’t see it’s going over the preorder menu. Also not sure about reducing white box as it seems fine on my end.
Would you add a screenshot and clarify what you are trying to achieve?
Cheers!
June 1, 2016 at 11:50 am #1020382
RifftParticipantI’m sorry, i didnt bring enough details.
You can see the problem if you try to switch from french to english only.
It’s all right in english to french because i didn’t modify the space between item menu on this version.Thanks for your help.
June 1, 2016 at 2:06 pm #1020646
JoaoModeratorHi There,
Please the code below you can adjust the values 25px according to your wishes in order to align the flags as you want.
:lang(fr) .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) { padding-left: 25px; } .x-navbar .desktop .x-nav > li > a:not(.x-btn-navbar-woocommerce) { padding-left: 25px; }Hope that helps,
Joao
June 2, 2016 at 3:00 am #1021674
RifftParticipantAll is perfect, thanks a lot !
June 2, 2016 at 6:34 am #1021927
Paul RModeratorYou’re welcome! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1019800 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
