Home › Forums › WoodMart support forum › Popup Button Extra Class
Popup Button Extra Class
- This topic has 21 replies, 3 voices, and was last updated 6 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
July 4, 2018 at 7:56 am #65912
PoliSafety ITParticipantHello,
I am trying to add extra class to the pop up button but it does not register on the front end.
Is this a bug or a misconfiguration from my end?Attachments:
You must be logged in to view attached files.July 4, 2018 at 8:24 am #65917
Elise NoromitMemberHello,
Please provide your site admin access, those you provided earlier are not valid as well the page URL where you have the popup element.
Best Regards
July 4, 2018 at 8:47 am #65921
PoliSafety ITParticipantThe credentials you used earlier remain the same. I just re-activated your account.
July 4, 2018 at 10:30 am #65943
Elise NoromitMemberHello,
The first links %ce%b4%ce%bf%ce%ba%ce%b9%ce%bc%ce%ad%cf%82/ gives the 404 error, I cannot login. If you have any blocking plugins or settings, deactivate them
Best Regards
July 4, 2018 at 10:33 am #65944
PoliSafety ITParticipantUse the method below.
July 4, 2018 at 11:53 am #65951
Elise NoromitMemberHere is what i have http://prntscr.com/k2f9sv
July 4, 2018 at 11:56 am #65953
PoliSafety ITParticipantUse these.
July 4, 2018 at 2:42 pm #65990
Elise NoromitMemberHello,
The popup element settings have two tabs: popup content http://prntscr.com/k2he5o and button https://gyazo.com/4636b6a2651f36c7a8e2ba035fc13ae7
We shall fixe the issue with the class for content in our nearest update, however as for the button as you can see there is no option to insert the class.
You can assign styles to ID or common class https://prnt.sc/k2hghb
Best Regards
July 5, 2018 at 6:42 am #66071
PoliSafety ITParticipantThank you very much for your assistance!
Is there a way to integrate a class or keep the ID constant on the button? I want to programmatically launch the popup via JavaScript but I can not fire a ‘click’ event if button does not have a constant ID.
July 5, 2018 at 7:03 am #66076
Elise NoromitMemberHello,
You can assign styles or JS to the button class https://prnt.sc/k2hghb try class
.woodmart-open-popup
Best Regards
July 5, 2018 at 7:17 am #66079
PoliSafety ITParticipantI tried the method you mention but it does not work if you have multiple popup buttons on the same page.
July 5, 2018 at 7:31 am #66088
Elise NoromitMemberHello,
If you have multiple popups on the page, use ID it is always unique
Best Regards
July 5, 2018 at 7:37 am #66090
PoliSafety ITParticipantThe ID is unique but upon page refresh it changes. Try refreshing the page and you will notice the change.
I added two screenshots of the same button that changes ID upon page refresh.
Attachments:
You must be logged in to view attached files.July 5, 2018 at 1:22 pm #66291
Elise NoromitMemberHello,
Try to use this selector:
a[href="#popupbutton"]
Best Regards
July 5, 2018 at 1:55 pm #66293
PoliSafety ITParticipantI am trying to trigger a button click using JavaScript/jQuery, not changing HTML or CSS, so I am not able to use the code that you provided.
Is there another way to show the popup after a few seconds on page load?
Thank you for your time.
July 5, 2018 at 2:13 pm #66296
Artem TemosKeymasterYou can try to use this JS code
setTimeout(function() { jQuery('a[href="#popupbutton"]').click(); }, 3000);
July 6, 2018 at 6:51 am #66383
PoliSafety ITParticipantThe following error occurs in the console “Uncaught SyntaxError: Unexpected token &”.
Anyways, thank you very much for your assistance.I will be waiting for an update and I hope you consider adding a constant ID on the popup button.
Best regards.
July 6, 2018 at 7:42 am #66387
Artem TemosKeymasterCould you please send us a link where we can see this error? It shouldn’t be caused by that code.
July 6, 2018 at 8:29 am #66390
PoliSafety ITParticipantThe code does not work and I get the following error in the Chrome console.
Attachments:
You must be logged in to view attached files.July 6, 2018 at 8:32 am #66392
Artem TemosKeymasterYou have added the code with errors https://gyazo.com/0e51910ed1aa6bc9fdfebdef80fd4c15
Please, use the code we sent you.July 6, 2018 at 8:42 am #66393
PoliSafety ITParticipantThank you very much and I apologize for the confusion.
July 6, 2018 at 8:49 am #66395
Artem TemosKeymasterGreat, we are glad that you sorted it out.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register