Home Forums WoodMart support forum Popup Button Extra Class

Popup Button Extra Class

Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #65912

    PoliSafety IT
    Participant

    Hello,

    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.
    #65917

    Hello,

    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

    #65921

    PoliSafety IT
    Participant

    The credentials you used earlier remain the same. I just re-activated your account.

    #65943

    Hello,

    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

    #65944

    PoliSafety IT
    Participant

    Use the method below.

    #65951

    Here is what i have http://prntscr.com/k2f9sv

    #65953

    PoliSafety IT
    Participant

    Use these.

    #65990

    Hello,

    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

    #66071

    PoliSafety IT
    Participant

    Thank 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.

    #66076

    Hello,

    You can assign styles or JS to the button class https://prnt.sc/k2hghb try class .woodmart-open-popup

    Best Regards

    #66079

    PoliSafety IT
    Participant

    I tried the method you mention but it does not work if you have multiple popup buttons on the same page.

    #66088

    Hello,

    If you have multiple popups on the page, use ID it is always unique

    Best Regards

    #66090

    PoliSafety IT
    Participant

    The 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.
    #66291

    Hello,

    Try to use this selector: a[href="#popupbutton"]

    Best Regards

    #66293

    PoliSafety IT
    Participant

    I 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.

    #66296

    Artem Temos
    Keymaster

    You can try to use this JS code

    setTimeout(function() {
    jQuery('a[href="#popupbutton"]').click();
    }, 3000);
    #66383

    PoliSafety IT
    Participant

    The 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.

    #66387

    Artem Temos
    Keymaster

    Could you please send us a link where we can see this error? It shouldn’t be caused by that code.

    #66390

    PoliSafety IT
    Participant

    The code does not work and I get the following error in the Chrome console.

    Attachments:
    You must be logged in to view attached files.
    #66392

    Artem Temos
    Keymaster

    You have added the code with errors https://gyazo.com/0e51910ed1aa6bc9fdfebdef80fd4c15
    Please, use the code we sent you.

    #66393

    PoliSafety IT
    Participant

    Thank you very much and I apologize for the confusion.

    #66395

    Artem Temos
    Keymaster

    Great, we are glad that you sorted it out.

Tagged: , ,

Viewing 22 posts - 1 through 22 (of 22 total)