Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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>
    #1299218

    Hey 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,
    Rikard

    #1299296

    HI 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.
    Ed

    #1299700

    Hi 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,
    Yigit

    #1299859

    Thanks 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
    Ed

    #1299908

    Hi,

    I think the conflict is between your cache plugin settings and Enfold’s.

    You are welcome, Ed! Let us know if you have any other questions and enjoy the rest of your day!

    Best regards,
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Code block wont show contents’ is closed to new replies.