sukafia on "[Plugin: Wise Chat] Turn "Customise" option button to pop-up"

ساخت وبلاگ

Wise chat is undoubtedly the best comment plugin. Can i please get a little help with the below function.

I want to make the "customize" option (text) trigger a pop-up. I'm using Userpro plugin for user registration/login on my site, I've renamed the "Customize" to "Enter your name", the idea is once a user clicks "Enter your name" Userpro login/signup modal comes up and after they login it just refreshes the page and logs them in so as to use their account details for the comment. I just need help making the "Customize" button which i have changed to "Enter your name" trigger Userpro modal. The CSS class for calling the modal is "popup-login". Please help me out. Thanks

https://wordpress.org/plugins/wise-chat/

The following link can also be used to trigger the popup modal - text here

Sorry - text here<closing tag>

I had to take out the closing tag , so it doesn't tu to a link again. Thanks

<script src="//pastebin.com/embed_js/R2ES3sut"></script> - Register

<a href="#" class="popup-register">Register</a>

I apologize for the delay.

Try this:

<script>
jQuery(window).load(function() { jQuery('.wcCustomizeButton').click(function() { // here is the code that shows the dialog by clicking on 'Register' link jQuery('.popup-register').click(); });
});
</script>

Paste this in your template.

sukafia
Member
Posted 14 minutes ago #

Thanks, thanks and thanks! I really can't thank you enough. It works perfectly. Do you happen to know how to make the SEND button to output the same function for guest. That's make the send button to do the exact popup for only not logged in users?

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : , , نویسنده : استخدام کار wpss بازدید : 364 تاريخ : يکشنبه 17 مرداد 1395 ساعت: 4:58