Tagged: x
-
AuthorPosts
-
June 3, 2016 at 8:01 am #1024120
bperry420ParticipantI have a custom nav link that I have styled to look like an orange button.
When I hover over it, you can still see the bottom border pop up.
How can I make that go away for just that link only?The class I used for the link is nav-purchase-button
Stack: Renew
WordPress 4.5.2 running X – Child Theme
X Version: 4.4.2
Cornerstone Version 1.2.4June 3, 2016 at 8:05 am #1024125
bperry420ParticipantHere is my CSS code for that link:
/* purchase button in navbar*/
.x-navbar li.nav-purchase-button > a
{
color:#ffffff!important;
background-color:#f8951d;
height:40px!important;
padding:15px 30px!important;
margin-top:22px!important;
margin-left:16px!important;
box-shadow: none!important;
text-align:center;
border-radius: 5px;
background: #f8951d;
}.x-navbar li.nav-purchase-button > a:hover
{
color:#ffffff!important;
height:40px!important;
padding:15px 30px!important;
margin-top:22px!important;
margin-left:16px!important;
box-shadow: none!important;
text-align:center;
border-radius: 5px;
background: #ff6600;
border:none!important;
}June 3, 2016 at 11:48 am #1024470
JoaoModeratorHi There,
Please use the following code instead.
.x-navbar li.nav-purchase-button > a { color:#ffffff!important; background-color:#f8951d; height:40px!important; padding:15px 30px!important; margin-top:22px!important; margin-left:16px!important; box-shadow: none!important; text-align:center; border-radius: 5px; background: #f8951d; } .x-navbar li.nav-purchase-button > a:hover { color:#ffffff!important; height:40px!important; padding:15px 30px!important; margin-top:22px!important; margin-left:16px!important; box-shadow: none!important; text-align:center; border-radius: 5px; background: #ff6600; border:none!important; }Hope that helps,
Joao
June 3, 2016 at 12:41 pm #1024524
bperry420ParticipantYou did not even change anything. Your code is identical to mine. Please try again. Thanks
June 3, 2016 at 4:02 pm #1024766
bperry420ParticipantUPDATE:
I changed the way I added the button.
In the menu, I have a custom link with this html: <button id=”nav-purchase-button”>PURCHASE</button>
It still has the purple bottom border popping up when you hover on it. How do I stop that?Here is my new css code:
#nav-purchase-button
{
background-color:#f8951d;
color:#ffffff;
border-color:#f8951d;
border-radius:5px;
margin-top:-8%;
padding-left:30px;
padding-right:30px;
border:none!important;
}#nav-purchase-button:hover
{
background-color:#4fc4cc;
color:#ffffff;
border-color:#4fc4cc;
border-radius:5px;
margin-top:-8%;
padding-left:30px;
padding-right:30px;
border:none!important;
}June 3, 2016 at 4:23 pm #1024783
bperry420ParticipantTo clarify, I want to remove the line that pops up under the orange button that I added to my navbar.
see here: http://dev2.petpace.com/
I think that has something to do with li box shadow?I know that to remove ALL of the lines from the whole menu, you would use the following code:
.x-navbar .desktop .x-nav > li > a:hover > span {
box-shadow: none;
}I just want to remove it from my navbar button only.
Can you please help me do that?
Thanks
June 3, 2016 at 10:35 pm #1025181
RadModeratorHi there,
Sure, please add this CSS
.x-navbar .desktop .x-nav > li#menu-item-2873 > a:hover > span, .x-navbar .desktop .x-nav > li#menu-item-2873.x-active > a > span, .x-navbar .desktop .x-nav > li#menu-item-2873.current-menu-item > a > span { box-shadow: none; }Hope this helps.
June 4, 2016 at 8:55 am #1025633
bperry420ParticipantThank you so much! That was the trick!
June 5, 2016 at 12:08 am #1026237
Rue NelModeratorYou’re welcome!
We’re glad we were able to help you out. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1024120 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
