Instruction
This widget dynamically generates cards with titles, subtitles, text, links, and customizable background colors. Follow these steps to customize the widget for your content:
Locate the
cardDataArray:- Inside the JavaScript section, find the
cardDataarray. Each object in the array represents a card.
- Inside the JavaScript section, find the
Customize Each Card:
- Title and Subtitle:
- Update the
titleandsubtitlefields with your desired text.
- Update the
- Text Content:
- Edit the
textfield to include the card's main content.
- Edit the
- Links:
- Add links to the
linksarray for each card. Each link is an object with:href: The URL for the link.text: The text displayed for the link.color(optional): The color of the link text. Leave this field empty for the default color.
- Add links to the
- Background Color:
- Use the
bgColorfield to set a custom background color for the card. For example, use#fffffffor white or#f8f9fafor light gray.
- Use the
- Title and Subtitle:
Add or Remove Cards:
- To add more cards, append additional objects to the
cardDataarray. - To remove a card, delete its corresponding object from the array.
- To add more cards, append additional objects to the
Preview and Save:
- After making changes, refresh the webpage to see the updated cards. Save your changes when you're satisfied.