Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1103202
    knowmates
    Participant

    Hi there,

    I’m trying to get a transparent header for our site based on icon stack but did’nt get it work until now. Could you please assist?

    Many thanks

    #1103203
    knowmates
    Participant
    This reply has been marked as private.
    #1103290
    Paul R
    Moderator

    Hi,

    You can add this under Custom > CSS in the Customizer.

    
    .home .x-navbar {
        border-bottom: 0;
        background-color: transparent;
    }
    
    .home .masthead {
        position: absolute;
        width: 100%; 
    }
    
    

    Hope that helps.

    #1103305
    knowmates
    Participant

    Thank you that helped me. I’ve added “opactity” to get light transparent 🙂

    #1103319
    knowmates
    Participant

    One more Question: is it possible that the transparency is only when we’re on top of the page? So that scrolling has a color?

    #1103416
    Thai
    Moderator

    Hi There,

    #1] Please add the following Javascript under Customizer > Custom > Global Javascript:

    jQuery(document).ready(function($){
    	$(window).scroll(function(){
    		if( $(window).width() < 480 ){
    			return false;
    		}
    		if ($(this).scrollTop() == 0) {
    			$('.x-navbar').removeClass('x-navbar-fixed-top');
    		}
    	});
    });

    #2] Please add the following CSS under Customizer > Custom > Global CSS:

    .x-navbar.x-navbar-fixed-top {
        background-color: #efefef;
        opacity: 1;
    }

    Hope it helps 🙂

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