demo-photography - menu does not close if link is external

8 replies · opened Apr 15, 2021

BbaroninkjetApr 15, 2021

How do I make the menu close when target is external website with "_blank"? When I return to my website , menu is still open.

Thank you!

SSemicolon WebSTAFFApr 17, 2021

Hello,

This is not supported by default. You can consider using the following code:
[ch_pre][/ch_pre]

Hope this Helps!

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

BbaroninkjetApr 27, 2021

Hi,

Thanks for this. The demo does not have any actual links in the code, so hard to tell if it works or not. What I found was that I had to add the above-referenced code (thank you!!!!) to local # links to make the menu close. Works fine on a computer.

On mobile, it does not. Try this as example:

https://www.of-g.com/ibpro/

I know I must be missing something very dumb here!

Thanks so much for your help!!!!!!!

p.s. One more related question: On web version, a vertical cursor is flashing over the hamburger. I noticed the same on some of your demos. Why is this, and how can I make it stop? Thanks again!

SSemicolon WebSTAFFApr 27, 2021

Hello,

Very Happy to Help! :)

  1. Consider adding the following code at the bottom of the Page:
    [ch_pre]<script>
    jQuery('.menu-link').on( 'click', function(){
    jQuery('body').removeClass('side-header-open');
    if( jQuery(window).width() < 992 ) {
    jQuery('.primary-menu').filter( ':not(.mobile-menu-off-canvas)' ).find('.menu-container').stop(true, true).slideUp(200);
    jQuery('body').toggleClass('primary-menu-open', false);

    }
    });
    </script>[/ch_pre]

Simply delete the previous codes from inside the Menus.

  1. Can you please provide us with a Screenshot of this issue as we were not able to reproduce this on our end. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

BbaroninkjetApr 27, 2021

Here is a little gif showing the blinking vertical cursor. This is on Chrome on Windows 10.

Also tried Edge and Brave, and it does not blink like this on either of them. ????

SSemicolon WebSTAFFApr 27, 2021

Oh wow. Very weird. We have just tried reproducing this but couldn't find the issue. Can you please consider checking this on another device/pc as there might some browser add-on that might be causing this? Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

BbaroninkjetApr 27, 2021

I have seen a lot of dumb bugs on Chrome lately which are not on other Chromium browsers.

SSemicolon WebSTAFFApr 27, 2021

On checking your GIF, it appears like a Cursor for an input which is nowhere added near the Header Triggers. We will continue checking this and get back to you once we can verify this and then fix this.

BbaroninkjetApr 27, 2021

Thank you!

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