• Resolved Himani Lotia

    (@imani3011)


    For guest users, would like to trigger a header login popup after page is loaded. Is there any solution to this?

    I tried the below solution but couldn’t make it work

    var is_log_in = $(‘.ct-header-account’).data(‘state’);
    //console.log(“is log in “+is_log_in);
    if(is_log_in === “out”)
    {
    $(‘.ct-header-account’).trigger(‘click’);
    }

Viewing 1 replies (of 1 total)
  • Hello @imani3011

    While unfortunately we won’t be able to help out with implementing custom code, the account element can be triggered via a custom link as long as it is already present inside the header.

    The link should look something like —

    <a class="ct-header-account" href="#account-modal" data-view="login | register | lost-password"></a>

    You should be able to implement this in your code to make it work. ??

    Hope this points you in the right direction!

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘How to trigger header account login popup on page loading for guests’ is closed to new replies.