Plugin Author
iClyde
(@iclyde)
Hi @unknown12
Your pop-up had additional display rule which always returned false.
β It was “On which pages should it show?”
I disabled that display rule especially when you have only button trigger.
This way it should solve you issue.
The second issue is with your button placement, you put that id into href attribute. Just like so:
href="http://id="mp-button-show-modal-50968""
It should be:
id="mp-button-show-modal-50968" href="#!"
Currently you have:
<a href="http://id="mp-button-show-modal-50968""> know more</a>
Change that to:
<a id="mp-button-show-modal-50968" href="#!"> know more</a>
Or if you can’t use IDs in your builder, please add class:
<a class="mp-button-show-modal-50968" href="#!"> know more</a>
Once you adjust your button, the pop-up should work π
I also recommend you to put some background on that text.
Let me know if that worked after adjustments.
Thank you!
I understand the point, actually, I am trying to use the pop up on the woocommerce product page short description so we can’t insert a button on a short description archive page and it only has an option to add a link, I want to add the pop up to know more text on a short description of woocommerce product page I am also adding the product page URL with for reference, https://budgetershopy.com/product/shoppers-stop-e-gift-1-2-hours-delivery/
Any suggestions to take care of this?
Hello team, any suggestions?
Plugin Author
iClyde
(@iclyde)
Hi @unknown12
My apologies for delayed, reply.
Could you please, let me know which page builder do you use?
I am not much experienced with WooCommerce (not sure if they have dedicated builder).
Can you use shortcodes in that description?
If so, you could make your own shortcode which would insert that id/class correctly. That should solve the issue π
I use elementor and we can’t use short codes on description page only the link. I can share the dashboard screenshot to understand
Plugin Author
iClyde
(@iclyde)
Hi @unknown12
According to these two pages:
– https://woocommerce.com/document/product-description-on-shop-page/
– https://stackoverflow.com/questions/26225696/add-additional-button-on-product-page-for-woocommerce
It’s 100% possible via PHP, but if you find “Custom loop description” it should be possible as well (I can see there is editor that support shortcodes and ID as well).
Let me know if you find above articles useful π
Thank you!
Instead of creating a button can we not get a direct link to use to get pop up when we click on it? it would make job easier, actually I want to show know more text with the pop up on the description page if I use a button on the product page that would create a confusion again to the customer.
Plugin Author
iClyde
(@iclyde)
Hi @unknown12
The problem is that we don’t have any implementation that would trigger the pop-up by href attribute. The last thing I have in mind would be simply JavaScript (We can provide it for you) that you will need to include in addition to your description page. It would add proper listener to your link in the description.
Would this option be fine for you?
In this case you can set the URL to something like #pop-up-someid
Notice: It won’t be dynamic and will require some adjusted if you would like to switch your pop-up theme (builder changes won’t require that).
As the rule says After visitor clicked on a link or button, can you help me with the link that I need to use? I can take it up from there
Plugin Author
iClyde
(@iclyde)
Hi @unknown12
By link it means <a> tag in HTML, this tag still require to have proper id or classname.
-
This reply was modified 4 years, 4 months ago by
iClyde.
Okay, please help me with the java script then, I will try.
Plugin Author
iClyde
(@iclyde)
Alright, please change your current URL: “http://id=”mp-button-show-modal-50968”
To: “#mp-button-show-modal-50968”
Once you do that I’ll write something directly on my side and send you back finished version π
How can I change URL to ID, please help
Plugin Author
iClyde
(@iclyde)
Simply modify this link here you’ve made: https://prnt.sc/26c25u2
In the editor you have on your side replace your current URL to “#mp-button-show-modal-50968β
Got it, does it have to be in quotes or quotes not required?