Home>Support>Running same script on sales page multiple times

Running same script on sales page multiple times

I’m trying to add a Shopify buy button on a Page Builder sales page multiple times.

I can add one button and all looks fine. But when I try to add the same code to a different HTML widget in a different section of the page, the button appears up in the first widget’s space when viewing the page in either Live editor or Preview.

I’ve tried both copying the Custom HTML widget and also adding a new blank widget in the desired row and then adding the script, but neither option is working.

I need the button to appear 3-4 times on the page.
TIA for your help.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Hi Christina

    Thanks for reaching out.

    To check if Page Builder is involved in the problem, you could try creating a test page in the Classic Editor and inserting the same code four times, does the issue persist?

  2. 4 years, 1 month ago Christina Hidek

    Hi Andrew, I created the Classic page without the page builder and it did have the same issue.

    But then I thought of a different way to search for the issue and ended up what the issue is. I need to slightly alter the code to have a unique id in a separate div for each time I want to have the button show.

    I know just enough about coding to be able to do most things myself, but get in over my head on some advanced issues. Thanks for your help in showing me a trouble shooting step. Appreciate it!

  3. 4 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    Awesome, I’m really glad to hear you’re making progress. Thanks for posting the solution here. If SiteOrigin questions arise in the future, please, let us know.

    Cheers for now :)

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More