Embedd button on site

Hey, so I’m building an NFT collection and the service provider gives me some code to embedd the minting button on my site.

They don’t give instructions though and I don’t know where would I have to embedd, how to do it or in general, how should I use this code I’m given.

Since they offer a free service, I get no support.

Could I get any help from you guys? How do I use this code to create a button on my site and make it work? Thanks.

Here is the code:

  <script>
        window.ownerId = "4X1k1NTXN6sQLa1SDWmoQLozmm9DqSy8vdBwkqkSDFd1"
        window.collectionId = "heuDF93DDQq5DhB7nmcA"
    </script>
    <script type="module" src="https://storage.googleapis.com/scriptslmt/0.1.3/solana.js"></script>
    <link rel="stylesheet" href="https://storage.googleapis.com/scriptslmt/0.1.3/solana.css">

They give some GitHub references here: https://github.com/LaunchMyNFT/EmbedExample

I’m completely lost, don’t know how to embedd this button in my site.

Hello @Truancho,

Thanks for writing in!

To insert the code in your site, you will have to install the “Insert Headers and Footers” plugin. You can get it here:

Once the plugin is installed, go to Settings > Insert Headers and Footer and then place the code:

Lastly, you can use the RAW CONTENT element where you can insert the button code <div id="mint-button-container"></div> provided in the screenshot above.

Kindly let us know how it goes.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.