Support » Plugin: Easy Voice Mail » Only one shortcode works within a page/url

  • Resolved maxim507


    Thank you for hte plugin, it works very nice.
    However there is an issue: if I add two or more shortcodes to the page or one url with the dynamic pages, only the first shortcode will work due to some similar id conflicts (e.g. #easy-voice-mail-form).
    Could you please suggest or advise what is the optimal way to resolve the issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter maxim507


    By the way, I have added ajax saving, and now it does not reload the page to save the message and the confirmation message appears. I would be happy to become a contributor and share this version with you, if you may be interested. )

    Plugin Author Phoenix Studio


    Hello, thanks for reaching out to us.
    You can solve the issue by using class name and not id for the buttons and classes names,
    We didn’t expect that a users will be using more than one record button in a page; since we expected it to be used only in contact forms (were client send voice instead of typing a message).
    I expect that you are a programmer,
    The solution we require you to (Javascript):
    – change all ids to class name.
    – then use querySelectorAll.
    – and finally loop through all instances of the plugin in page and add the events handlers.

    Yes ajax would be or could be better only if there are more than one instance of the plugin in the same page/post, but other than that not sure if it would be usefull (since we want to keep same pattern/feeling of overall site of wordpress when somone post a comment, a message in a contact form…), else it will confuse users.
    Can you please explain more in details the use case where user need to put more than one plugin instance in a single page ?
    feel free to contact us directly in our website or by email.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only one shortcode works within a page/url’ is closed to new replies.