Page 1 of 1

Adding HTML Code to a Card

Posted: Fri Jan 17, 2025 10:33 pm
by maggiemma
Hello,
I was wondering if it is possible to have html code work within a card. The code that I'm trying to use works if it's not in a card. I see that it can be added, but I just can't get it to work. I've included a link to my project file.

This is the code:
<div data-vc-type="itemprice" data-vc-id="PLTE-MID-AFTR-002" data-vc-currency="USD" style="font-family: Arial; font-size: 24px; color: #B86B33;></div>

It pulls and displays a price from a vibracart product. Any help would be greatly appreciated. Thank you.

https://www.sewcraftey.com/Card.zip

Re: Adding HTML Code to a Card

Posted: Fri Jan 17, 2025 10:46 pm
by BaconFries
You can add custom code via the HTML Object

Re: Adding HTML Code to a Card

Posted: Sat Jan 18, 2025 7:52 am
by Pablo
The added code is incomplete. It should be

Code: Select all

<div data-vc-type="itemprice" data-vc-id="PLTE-MID-AFTR-002" data-vc-currency="USD" style="font-family: Arial; font-size: 24px; color: #B86B33;"></div>
Also, because there is no content inside the div, it will just show an empty place holder

Re: Adding HTML Code to a Card

Posted: Sat Jan 18, 2025 12:08 pm
by maggiemma
Okay, thank you!