How-to and Troubleshooting
8
Posts
2
Users
0
Reactions
1,405
Views
Jan 14, 2021 9:54 pm
Hello,
I am using a pop up login plugin where i need to add class in link to trigger the pop up, like <a href="#Login" class="lrm-login lrm-hide-if-logged-in" > Login </a> to trigger pop up login when clicked on login text.
Now, in the User Authorization and Profile Data option in the setting i could found the login url, but don't know how to do that.
Please guide me regarding this..
7 Replies
Jan 15, 2021 9:00 am
Hi @civilenggnotes,
You should find all classes that are added on the popup window in the plugin and put it in the class attributes (the red marked codes are just an example, in your case, it may differ) in the code below:
add_filter("wpdiscuz_login_link", function ($login) {
return str_replace(" href=", " class='swal-menu-item sw-open-login' href=", $login);
});
Put the code in the WordPress active theme functions.php file (more information how to add insert custom code):