• Resolved martasz

    (@martasz)


    Hi,
    I installed Hustle plugin today. I tried to add a pop up with a button click trigger. I choose: “Trigger after user clicks on existing element with this ID or Class”. My button ID is “saveBtn-914-1” i add “#” in front of it so I put #saveBtn-914-1 there (without “” of course) and it doesn’t work. I tried also not to put # in front of – still not working. Am I doing it correctly? Pop up works when I use default trigger (opening the page), or when I use time delay trigger.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hey @martasz,

    Hope you’re well.

    I tried click trigger method for Hustle popup on new installation and everything looks like working normally. First are you sure about the button id is correct? If everything correct but still not working maybe there is Javascript error.

    Because of you didn’t share the URL I couldn’t check the site but can you check browser console? In Chrome, you can open it with Command+Option+J for Mac or Control+Shift+J for Windows/Linux. Please look is there any error while loading page or clicking button.

    Cheers,
    Oguz

    Thread Starter martasz

    (@martasz)

    Hi Oguz,
    Thank you very much for your answer.
    This is the URL:
    https://www.nddziecka.pl/2018/04/02/radosc-ze-spaceru/
    and the button is the big, blue one with the text “Zaglosuj”
    I tried saveBtn-914-1 or #saveBtn-914-1 and the same with the class (class is a better option for me in fact, but for the trial, I also checked button ID) I tried btn.btn-default.save-rating and .btn.btn-default.save-rating. Is it correct? What version should be used in plugin: with or without # and . ?
    I checked browser console and there is one Javascript error. It is connected with the scrooling – I’m not pasting it, because it’s not in english. It says, that probably the page is using positionig connected with the scrooling (I have no idea what it means ?? ) – which might not work properly. In fact I tried also popup option, where popup is triggered by scrooling – do you think it might be connected with it? This popup trigger also didnt work for me.

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @martasz,

    hope you’re doing good! ??

    I just tried the exact ID you’re testing, by adding this in a testing page:
    <button id="saveBtn-914-1">CLICK ME</button>
    and setting this in Hustle display settings:

    All seems to work without any issues, so I think that this is happening because:

    a) some conflict with other plugin/theme. To double check that, keep a recent backup of your website and then try to activate a default theme like TwentySeventeen and deactivate all other plugins apart from Hustle.
    If you can install plugins, install “Health Check”: https://www.ads-software.com/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    b) the button you’re targeting is actually a submit input button, which also triggers the vote posting. You could try to make a simple example with a button like I did above, to double check that.

    Warm regards,
    Dimitris

    Thread Starter martasz

    (@martasz)

    Hi Dimitris,
    Thank you very much for your answer. The reason for the problem was, as you suggested, the submit button. With other button it works. Pitty, that it doesn’t work with the functional button ?? But at least I know where is the problem and I already have found another solution for my page. Thank you very much fr your support.
    Best regards,
    Marta

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘popup on click doesn’t work’ is closed to new replies.