How can I change VGM button text?

New home Forums Visitor Generated Markers General queries How can I change VGM button text?

  • This topic has 2 replies, 1 voice, and was last updated 3 years ago by Steven.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #59296
    [email protected]
    Participant

    I have customized all of the field labels on my VGM form however the Add button text reads Add Marker. How can I change it to something else?

    Thank you!

    #59303
    Steven
    Moderator

    Hi there,

    Thank you so much for getting in touch, we really appreciate your time.

    You should be able to make use of some custom JavaScript to adjust this text.

    Could I kindly ask you to navigate to -> Maps -> Settings -> Advanced -> Kindly copy the below custom JavaScript and paste it into the custom Js field.

    jQuery(document).load(function(){
    jQuery(“#wpgmza_ugm_addmarker”).prop(‘value’, ‘New Text Here’);
    })

    Once complete, click save and confirm?

    Please let me know if this helps?

    Kindest Regards,
    Steven De Beer

    #59321
    [email protected]
    Participant

    I’m sorry but the jquery code is not working.

    #59322
    [email protected]
    Participant

    I figured out the problem. The code should be:

    jQuery(document).ready(function(){
    jQuery(“#wpgmza_ugm_addmarker”).prop(‘value’, ‘New Text Here’);
    })
    #59331
    Steven
    Moderator

    Hi there,

    Thank you so much for getting back to me.

    I am glad to hear changing it to to the .ready() method has helped.

    Please do let me know if there is anything more I can assist with as I am always eager to help.

    Do have a great week further!

    Kindest Regards,
    Steven De Beer

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.