This topic has 2 replies, 2 voices, and was last updated 8 years by wbz.

  • Author
  • #86102
     wbz
    Participant

    Hello,

    How do i disable the login popup completely. I removed the code below in \wp-content\themes\kleo\assets\js\app.js  but it still pops up.

    `

    /* Login modal */

    /* On specific URL*/
    if(window.location.hash) {
    var myHash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character
    if (myHash == ‘show-login’ && ! $(“body”).hasClass(‘logged-in’)) {
    $.magnificPopup.open({
    items: {
    src: ‘#kleo-login-modal’,
    type: ‘inline’,
    focus: ‘#username’
    },
    preloader: false,
    mainClass: ‘kleo-mfp-zoom’

    });
    }
    }

    $(‘.kleo-show-login, .bp-menu.bp-login-nav a, .must-log-in > a’).magnificPopup({
    items: {
    src: ‘#kleo-login-modal’,
    type: ‘inline’,
    focus: ‘#username’
    },
    preloader: false,
    mainClass: ‘kleo-mfp-zoom’,

    // When element is focused, some mobile browsers in some cases zoom in
    // It looks not nice, so we disable it:
    callbacks: {
    beforeOpen: function() {
    if($(window).width() < 700) {
    this.st.focus = false;
    } else {
    this.st.focus = ‘#username’;
    }
    }
    }
    });

    /* Lost Pass modal */
    $(‘.kleo-show-lostpass’).magnificPopup({
    items: {
    src: ‘#kleo-lostpass-modal’,
    type: ‘inline’,
    focus: ‘#username’
    },
    preloader: false,
    mainClass: ‘kleo-mfp-zoom’,

    // When elemened is focused, some mobile browsers in some cases zoom in
    // It looks not nice, so we disable it:
    callbacks: {
    beforeOpen: function() {
    if($(window).width() < 700) {
    this.st.focus = false;
    } else {
    this.st.focus = ‘#forgot-email’;
    }
    }
    }
    });

    `

     

    #86104
     sharmstr
    Moderator

    Your site will load the mninified version of that file unless you have enabled developement mode in theme options.

    There’s no need to remove the code (which by the way will be readded with every update). Just dont use the Kleo or Buddypress login link.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    This support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com

    #86109
     wbz
    Participant

    Ook…Thanks

Viewing 3 posts - 1 through 3 (of 3 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?