Tagged: x
-
AuthorPosts
-
February 11, 2017 at 10:51 pm #1367547
Abd Ur RehmanParticipantHi there!
I changed color of mobile button with code.
.x-btn-navbar { color: #0C0C0C !important; background-color: #f7b926 !important; }It works fine on mobile and iPad screens but on small desktop screens still shows white. How can I change that?
Thanks
February 12, 2017 at 4:51 am #1367719
ChristopherModeratorThanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
February 12, 2017 at 9:25 am #1367895
Abd Ur RehmanParticipantThis reply has been marked as private.February 12, 2017 at 9:54 am #1367919
ThaiModeratorHi There,
Please find this CSS:
@media (max-width: 767px) { .x-topbar .p-info { background-color: #0c0c0c !important; } .x-colophon { border-top: 0 !important; } .wpcf7-not-valid-tip { font-size: 10px !important; }And change to this:
@media (max-width: 767px) { .x-topbar .p-info { background-color: #0c0c0c !important; } .x-colophon { border-top: 0 !important; } .wpcf7-not-valid-tip { font-size: 10px !important; } } .x-btn-navbar { color: #0C0C0C !important; background-color: #f7b926 !important; }Hope it helps 🙂
February 13, 2017 at 5:05 pm #1369652
Abd Ur RehmanParticipantThis reply has been marked as private.February 14, 2017 at 1:27 am #1370092
FriechModeratorHi There,
You’re not closing your @media query. And it looks like you duplicate it two times. Please look for this entire block:
@media (max-width: 767px) { .x-topbar .p-info { background-color: #0c0c0c !important; } .x-colophon { border-top: 0 !important; } .wpcf7-not-valid-tip { font-size: 10px !important; } @media (max-width: 767px) { .x-topbar .p-info { background-color: #0c0c0c !important; } .x-colophon { border-top: 0 !important; } .wpcf7-not-valid-tip { font-size: 10px !important; } @media (max-width: 767px) { .x-topbar .p-info { background-color: #0c0c0c !important; } .x-colophon { border-top: 0 !important; } .wpcf7-not-valid-tip { font-size: 10px !important; } } .x-btn-navbar { color: #0C0C0C !important; background-color: #f7b926 !important; }And update that to this:
/*START OF @MEDIA QUERY 767px*/ @media (max-width: 767px) { .x-topbar .p-info { background-color: #0c0c0c !important; } .x-colophon { border-top: 0 !important; } .wpcf7-not-valid-tip { font-size: 10px !important; } } /*END OF @MEDIA QUERY 767px*/ .x-btn-navbar { color: #0C0C0C !important; background-color: #f7b926 !important; }As you can see your code to change the mobile button color is now outside the
@media, so it will take effect the time the mobile button shows up. Unlike when it was inside the@media (max-width: 767px)it will only trigger when the page is viewed on 767px screen and smaller.Hope it helps, Cheers!
February 15, 2017 at 9:04 am #1372015
Abd Ur RehmanParticipantThis reply has been marked as private.February 15, 2017 at 4:15 pm #1372567
FriechModeratorHi There,
I did go ahead and resolve the issue, see the gray part on your custom CSS. That was the duplicate I’m talking about, I just commented it out. You can remove that if you want.
Please clear your browser’s cache before previewing the page so you can see the changes.
Cheers!
February 15, 2017 at 5:27 pm #1372637
Abd Ur RehmanParticipantThanks Friech, I didn’t get notice of that. Yep, now it’s working.
Regards,
Abd Ur Rehman
February 15, 2017 at 11:53 pm #1373053
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1367547 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
