Java script problem on WordPress

  • Unknown's avatar

    Dear wordpress support community!

    I am wondering if anyone may know a quick fix to this issue.
    Right now while applying a single java script to a WordPress block its working fine.

    Once adding a second widget with similar code then it’s causing some type of conflict with the first one.. perhaps this may be because they are using the same name or sharing some type of information.

    I’ll post both code snippets below & you may know a way to completely seperate them so they do not recognize eachother and conflict.

    These are “buy now” Java script buttons from Xsolla & they each have different values, i need to add a total of 10 – 12 but right now I cannot add more then one without some type of conflict.

    Code 1:

    Code 2:

    Thanks in advance for your kind efforts of helping strangers.

    Wish you all well!

    Cody.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi @codylegge,

    You are in the wrong forum. Your site is using the Open Source WordPress project and is hosted elsewhere. You can check this at the link down below:
    https://www.whoishostingthis.com/#search=legioneternalwar.com

    These forums are for sites hosted on WordPress.com. You can learn more about the difference between WordPress.com and WordPress software you are using in this article:

    WordPress.com vs. WordPress.org

    You can ask for help at:
    https://wordpress.org/support/forums/

    Best :)
    Sunil Chauhan

  • The topic ‘Java script problem on WordPress’ is closed to new replies.