Issue
I am trying to add a background color to my shopify slideshow section but it doesn’t work.
I have tried to add a new div:
<div style="background-color:{{block.settings.color_accent}}">
But I get broken html error. What am I doing wrong? Can someone tell me how to fix it?
Solution
You can try to below code and must have to add this code to you have created block schema code:
{
"type": "color",
"id": "color_accent",
"label": "Buttons color",
"default": "#FFFFFF"
}
And you need to create a div:
<div style="background-color:{{block.settings.color_accent}}">
Answered By - Dotsquares Answer Checked By - Terry (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.