Tagged: code, Code block
-
AuthorPosts
-
May 7, 2021 at 10:59 am #1298911
Hi there!
I am trying to make this code work in a code block element but it doesn’t – any ideas? Do I need to wrap it in another tag or some HTML? This is an embed code from Opensea.io to allow me to embed an NFT artwork on my site.
Any help would be welcome.
Thanks
Ed<nft-card contractAddress="0x495f947276749ce646f68ac8c248420045cb7b5e" tokenId="89549634066345487221244274609588632682809958158333996135119455271297000407041"> </nft-card> <script src="https://unpkg.com/embeddable-nfts/dist/nft-card.min.js"></script>
May 10, 2021 at 5:04 am #1299218Hey Swarez,
I’m not familiar with that type of code unfortunately, did you get any instructions on how to implement it on your site? Also please give us access to where you want to add this, in private.
Best regards,
RikardMay 10, 2021 at 9:23 am #1299296HI Rikard
The code is what you get from opensea.io – it’s an NFT trading site (crypto art). I have 80 listings and want to embed a selection on a web page. That code is what you get when you select their ’embed’ option.
My collection is here: https://opensea.io/collection/abstract-art-by-swarez
Click any listing and click ‘share’. That’s the embed code you get. Nothing more. I was hoping to display it here: https://www.swarez.co.uk/nft-and-crypto-art/
Logins in private section.
Thanks in advance.
EdMay 11, 2021 at 3:32 pm #1299700Hi Ed,
I created a duplicate private page and inserted the code inside a Code Block element with “nft-card” ID and then I added following code to bottom of Quick CSS field
#nft-card { clear: both; }
When I enable CSS file merging in Enfold theme options, CSS does not work so I left it disabled. That is probably related to settings in your cache plugin.
Please review the private test page :)
Best regards,
YigitMay 12, 2021 at 9:41 am #1299859Thanks for your help Yigit.
Sadly, if I have to turn off CSS compression I will compromise the site performance so at least now I know where I’m at.
Thanks for sorting this.
Kind regards
EdMay 12, 2021 at 12:19 pm #1299908 -
AuthorPosts
- The topic ‘Code block wont show contents’ is closed to new replies.