-
Author
-
November 7, 2015 at 02:53 #86102wbzParticipant
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’;
}
}
}
});`
November 7, 2015 at 03:18 #86104sharmstrModeratorYour 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 solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.