-
Author
Tagged: modal login
-
July 25, 2014 at 16:44 #23626
StefanDidak
ParticipantIs there a way to completely disable the modal login popup (from a child theme)?
July 25, 2014 at 17:18 #23633Catalin
Moderatora easier way would be to remove class from the menu item; take a look at the screenshot
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionAttachments:
You must be logged in to view attached files.July 25, 2014 at 17:39 #23641StefanDidak
ParticipantAh, but I’m not using a menu item for login. The modal popup will come up when a visitor clicks a link like “you need to be logged in to comment”, for example. So what I am looking for is a way to disable the entire modal popup feature completely.
July 30, 2014 at 14:23 #24076Catalin
ModeratorHello,
You need to go to this file:
..\wp-content\themes\kleo\assets\js\app.js
and remove this part (around line 478 to 499)
COPY CODE/* Login modal */ $('.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 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 = '#username'; } } } });Thank you,
CatalinHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘KLEO’ is closed to new topics and replies.

