-
AuthorPosts
-
May 8, 2020 at 10:29 pm #7517leonylParticipant
Hello I bought your plugin, because I worked with the MojoPlug slide panel before, but get permanent Ajax waring alerts, although everything was set correctly via targets. The reason for this was the Woo Side Cart plugin, which is necessary for my customers by shopping. Therefore I need your help now, because your script has no conflicts with my other plugins, great. But I do not need the button you created to open and close the flyout variant, i need my own in my template. Now the question: Which id or direct link can I use to open the widget by a href? ? At mojo plugin I had previously given id = “mojosp-toggle-left” the instruction to open the slide as a link and now I hope that you can also act with this plugin.
Please help.. Bestregards Leon
PS: Activation of your plugin in my wp admin was not possible.
May 8, 2020 at 11:45 pm #7518Aakash ChakravarthyKeymasterHi Leonyl,
Thanks for buying Ultimate floating widgets. Please do the following.
If you want to hide the button completely, please set below CSS in the ‘Widget tempalte settings” –> additional css. Where 1 being the ID of the widget box.
#ufw_1 .ufw_btn_wrap { display: none; }
To show the widget box, you can use below jQuery call.
<script> jQuery('.my_custom_button').click(function(){ jQuery('#ufw_1 .ufw_btn').trigger('click'); }); </script>
Hope it helps.
Regarding the activation, can you please share the error you are getting ?
Thanks,
AakashMay 9, 2020 at 2:48 pm #7519leonylParticipantHello Aakash,
first of al thank you for the great plugin and your support.
The only small issue is the query link on my button. I tried now 1 hour different solutions and no one works and open the left slider.
So it would bei great to give me a helping hand more.
The css display-none i did before, thank you it works, but the click trigger event is not working yet.
Here is my custom div button code– on gdpr rules i can’t paste here the domain of my customer, but can do this by email if it’s important.
This is in the pagebuilder html box and shows it also in the front end source code, but did not open slide.
<script>
jQuery(‘.btn_reservieren’).click(function(){
jQuery(‘#ufw_1’).trigger(‘click’);
});
</script>Hooe you can find the error.
Thanks Leon
May 9, 2020 at 2:50 pm #7520leonylParticipantMay 9, 2020 at 2:52 pm #7521leonylParticipantno, your editor is deleting a part of my scripting… can i mail it to you ?
May 9, 2020 at 4:09 pm #7522Aakash ChakravarthyKeymasterHi Leon,
If you share me the website URL and the button which should open the widget box, I can share the exact script.
If the buttons are dynamically generated, then you may need to use “on” like this.
<script> jQuery(document).ready(function() { jQuery(document).on("click", ".btn_reservieren", function(){ jQuery("#ufw_1").trigger("click"); }); }); </script>
Please note that
jQuery("#ufw_1").trigger("click");
is the main code to launch the widget box and it will work. The problem right now on your side is that the element is not able to call it.Please try above script. If it didn’t work, share me the website URL. I’ll help you.
Thanks,
AakashMay 12, 2020 at 4:24 pm #7536leonylParticipantHello Aakash,
i tried the last days different ways of funcion trigger click on event, but it was not possible for me to find the right x-browser solution. It would be nice to help me by my config of my template css button to slide your panel.
Best regards
LeonMay 12, 2020 at 5:11 pm #7537Aakash ChakravarthyKeymasterHi Leon,
Can you please share your website URL and the page where the button is present ?
Thanks,
AakashMay 12, 2020 at 5:26 pm #7538leonylParticipantMay 12, 2020 at 9:19 pm #7539Aakash ChakravarthyKeymasterGood that it works.
But isn’t this the same script as before ?
May 12, 2020 at 11:01 pm #7540leonylParticipantHey, yea the script ist the same. it was something missing:
in a href -> javascript:void(0);
Thank you for your time.
best regards Leon
May 13, 2020 at 1:27 am #7541Aakash ChakravarthyKeymasterCheers !
-
AuthorPosts
- You must be logged in to reply to this topic.