Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1142032
    Steve123
    Participant

    Hi,

    Is it possible to make the header/menu shrink/enlarge as the page scrolls like the Enfold theme, please?

    Thanks.

    #1142505
    Prasant Rai
    Moderator

    Hello Steve,

    Thanks for writing in!

    You can use Fix Top under navbar position.

    Thanks.

    #1142928
    Steve123
    Participant

    Thanks, but that does nothing.

    Are you saying it CANNOT shrink and enlarge as people scroll like Enfold?

    #1143158
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    To make changes to your Header menu, we request you to follow the Header Customization section by following the below link.

    https://community.theme.co/kb/customizer-header/

    You can achieve the Header Scroll Effect by using an additional Javascript via Appearance > Customize > Custom > Javascript.

    jQuery(document).ready(function($){
    	$(window).scroll(function(){
    		if ($(this).scrollTop() > 0) {
    			$('.x-navbar-fixed-top').css("background-color", "#fff");
    		} else {
    			$('.x-navbar-fixed-top').css("background-color", "transparent");
    		}
    	});
    });

    Hope this helps!

    #1143395
    Steve123
    Participant

    Thanks.

    So X cannot do the shrink/enlarge effect that Enfold does?

    #1143623
    Joao
    Moderator

    Hi There,

    Have you tried the code above?

    Would you mind posting the link of your page and the page of Enfold you are referring to so we can compare and help you reach you the desired affect?

    Thanks

    Joao

    #1143677
    Steve123
    Participant

    Look at the Enfold image, top left in the header as you scroll. It shrinks.

    Home

    #1144243
    Christopher
    Moderator

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

    #1144309
    Steve123
    Participant

    My site isn’t live (it’s a brand new version of X on up-to-date WP). All I want to know is if it is possible for X to achieve that effect, please. A simple yes or no – you do not need to see my site to tell me if X is capable of that.

    #1144656
    Joao
    Moderator

    Hi,

    It is definitely possible.

    You can try the solution provided above, if you are unsatisfied with it, you might search assistance of a professional developer to bring you the desired effect.

    Hope that helps,

    Joao

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