Niche Demo Store Navigation bug

6 replies · opened May 25, 2021

Aagalea80May 25, 2021

Hi could you kindly check if the transparent navigation on the (store) niche demo has a bug?

On mouse over the navigation menu in desktop turns white however when you scroll down and then back up and you have the mouse over it turns grey colour (not transparent). Can you let me know if I can change anything to fix this so that it stays white while over it?

Also when using it on tablet or mobile the colour of the navigation menu is always gray. Can the colour be changed to white?

Let me know if you require any further clarifications.

Aaron

SSemicolon WebSTAFFMay 27, 2021

Hello,

Thanks for your Kind Patience!

We have been going through this according to your explanations and yes we can confirm that it does happen as you have mentioned but we are not sure if this can be classified as a bug as the functionality is not broken taking into account the Hover and Scroll functionalities are working together here. Yes, we agree that on Hover the Header should be white, but when we scroll while hovering the Header, the Sticky Menu functionality kicks in. So, when the Header scrolls back up, the classes are restored which overrides the hover functionality (if still hovering the Header). Yes, it is a little bit tricky and we must admit that this something which we didn't account for when we were testing the demo. So please allow us to work on this for sometime as this requires us to change the core JS codes for the Sticky Header. Thanks for your Patience!

Additionally, to make the Header Light on Mobile Devices, simply add the data-responsive-class="not-dark" Attribute to the `` tag.

This will definitely work fine. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Aagalea80May 28, 2021

Thanks for answer.

Let me know if you manage to fix the JS issue with the hover.

Regards,

Aaron

SSemicolon WebSTAFFMay 28, 2021

Yes we will send you an Email Notification once we have a proper solution to this issue.

Thanks for your Patience.

Aagalea80Mar 22, 2022

Hi just checking if the problem above with the niche demo "Store" navigation has been fixed and if this involves changing the JS scripts? I am currently using version 6.33 of the Canvas files.

SSemicolon WebSTAFFMar 23, 2022

Hello,

Thanks for your Kind Patience!

We have found the Solution for this. Please follow the steps:

  1. Add the following code inside the removeStickyness: function() Function Block in the js/functions.js File:
    [ch_pre type="js"]$header.trigger( 'cnvs-sticky-header-disabled' );[/ch_pre]

  2. Replace the existing changeHeaderColor Function Block in the demo-store.html File with the following:
    [ch_pre type="js"]function changeHeaderColor(){
    if (jQuery(window).width() > 991.98) {
    jQuery( "#header" ).on( 'mouseover', function() {
    if (!$(this).hasClass("sticky-header")) {
    $( this ).addClass( "hover-light" ).removeClass( "dark" );
    SEMICOLON.header.logo();
    }
    $( "#wrapper" ).addClass( "header-overlay" );
    });

    jQuery( "#header" ).on( 'mouseout', function() {
    if (!$(this).hasClass("sticky-header")) {
    $( this ).removeClass( "hover-light" ).addClass( "dark" );
    SEMICOLON.header.logo();
    }
    $( "#wrapper" ).removeClass( "header-overlay" );
    });

    $('#header').on( 'cnvs-sticky-header-disabled', function() {
    if( $('#header').is(':hover') ) {
    $( this ).addClass( "hover-light" ).removeClass( "dark" );
    SEMICOLON.header.logo();
    $( "#wrapper" ).addClass( "header-overlay" );
    }
    });

    }
    };[/ch_pre]

This will definitely fix the issue. Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Aagalea80Mar 25, 2022

Thanks, that's great.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard