Tagged: x
-
AuthorPosts
-
January 24, 2017 at 11:48 am #1343444
pabloParticipantHi there!
my site is http://www.pablotest.com
I would like to reduce the opacity of the header background color (black) to 0.8, and without a border line at the bottom.
Then, when scrolling down the page, i would like to show the header at 100% black.
How can i achieve this and where should i paste the code?
Thanks a lot!!
PabloJanuary 24, 2017 at 1:39 pm #1343553
JadeModeratorHi Pablo,
Please add this in the custom Javascript:
jQuery(function($){ $(window).scroll(function(){ if( $(this).scrollTop() == 0 ) { $('.x-navbar-fixed-top').removeClass('x-navbar-fixed-top'); } }); });Then add this in the custom CSS:
.x-navbar { background-color: rgba(0,0,0,0.8); position: absolute; top: 0; width: 100%; } .x-navbar.x-navbar-fixed-top { background-color: #000; }Hope this helps.
January 24, 2017 at 2:53 pm #1343659
pabloParticipantThank you very much Jade!
However:
1) I still have a black thin line at the bottom of the header. I need to remove it.
2) When i scroll down, all the header dissappears. I need it to be fixed and 100% black.Can you help me with this?
Thanks a lot!!
January 24, 2017 at 8:23 pm #1344129
NicoModeratorHi There,
1. Add this in your Customizer > Custom > CSS:
.x-navbar{ border-bottom: 0px solid #000; }2. remove the position: absolute; in your code above for .x-navbar class.
Hope it helps.
Let us know how it goes.
Thanks.
January 25, 2017 at 7:19 am #1344648
pabloParticipantHi Nico thanks a lot!
It worked perfectly! That´s exactly what i was looking for!
Two of my pages (directors, contact) have white background color, so i prefer to have the original 100% black header.
To achieve this, i must put the entire code you provided me only in the pages that i want them to show? Through cornerstone? Or the header global style applies to all the pages?Sorry for my english!
Thank you!
January 25, 2017 at 9:44 am #1344833
ThaiModeratorHey There,
Your website is under construction.
Would you mind providing us with your admin account so we can take a closer look?
Thanks.
January 25, 2017 at 10:44 am #1344934
pabloParticipantThanks Thai!
Now its avaliable!January 25, 2017 at 12:38 pm #1345071
JadeModeratorHi Pablo,
Please add this code in the global customizer:
.page-id-21 .x-navbar, .page-id-15 .x-navbar { background-color: #000; }Hope this helps.
January 26, 2017 at 7:56 am #1346303
pabloParticipantThanks Jade, but it isn´t working for me.
Attached is the entire code.
Thanks!January 26, 2017 at 7:59 am #1346308
JoaoModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks
January 26, 2017 at 8:21 am #1346327
pabloParticipantThis reply has been marked as private.January 26, 2017 at 9:24 am #1346418
JoaoModeratorHi There,
There was a missing } I have fixed for you.
Thanks
January 26, 2017 at 9:35 am #1346441
pabloParticipantTHANK YOU VERY MUCH JOAO!!!
January 26, 2017 at 10:00 am #1346484
RahulModeratorYou’re most welcome!
Feel free to ask us again.
Thanks for choosing the X-theme.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1343444 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
