Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1343444
    pablo
    Participant

    Hi 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!!
    Pablo

    #1343553
    Jade
    Moderator

    Hi 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.

    #1343659
    pablo
    Participant

    Thank 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!!

    #1344129
    Nico
    Moderator

    Hi 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.

    #1344648
    pablo
    Participant

    Hi 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!

    #1344833
    Thai
    Moderator

    Hey There,

    Your website is under construction.

    Would you mind providing us with your admin account so we can take a closer look?

    Thanks.

    #1344934
    pablo
    Participant

    Thanks Thai!
    Now its avaliable!

    #1345071
    Jade
    Moderator

    Hi 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.

    #1346303
    pablo
    Participant

    Thanks Jade, but it isn´t working for me.
    Attached is the entire code.
    Thanks!

    #1346308
    Joao
    Moderator

    Hi 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 / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks

    #1346327
    pablo
    Participant
    This reply has been marked as private.
    #1346418
    Joao
    Moderator

    Hi There,

    There was a missing } I have fixed for you.

    Thanks

    #1346441
    pablo
    Participant

    THANK YOU VERY MUCH JOAO!!!

    #1346484
    Rahul
    Moderator

    You’re most welcome!

    Feel free to ask us again.

    Thanks for choosing the X-theme.

  • <script> jQuery(function($){ $("#no-reply-1343444 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>