hello, @Chapee45
video with text section code given below. and follow some steps.
-
Go to the admin >> theme >> edit code >> sections >> add a new section with the name ‘video_with_text’.
-
When section created then copy the given code and paste into the created section.
copy code from here.
{% schema %}
{
“name”: “video with text”,
“class”: “video_with_text”,
“settings”: [
{
“type”: “checkbox”,
“id”: “revrt”,
“label”: “Video left”
},
{
“type”: “checkbox”,
“id”: “m_revrt”,
“label”: “Video top on mobile”
},
{
“type”: “text”,
“id”: “heading”,
“label”: “Heading”,
“default”: “Video With Text”
},
{
“type”: “textarea”,
“id”: “content”,
“label”: “Content”
},
{
“type”: “url”,
“id”: “url”,
“label”: “Button URL”
},
{
“type”: “text”,
“id”: “btn_label”,
“label”: “Button URL”
},
{
“type”: “radio”,
“id”: “select”,
“label”: “Video type”,
“options”: [
{
“value”: “MP4”,
“label”: “MP4”
},
{
“value”: “iframe”,
“label”: “Youtube/Vimeo”
}
],
“default”: “MP4”
},
{
“type”: “url”,
“id”: “vid”,
“label”: “MP4 video URL”
},
{
“type”: “image_picker”,
“id”: “poster”,
“label”: “Poster on MP4 video”
},
{
“type”: “checkbox”,
“id”: “check”,
“label”: “Video autoplay”
},
{
“type”: “url”,
“id”: “i_vid”,
“label”: “Youtube/Vimeo video URL”
},
{
“type”: “checkbox”,
“id”: “bg_clr”,
“label”: “background color”
},
{
“type”: “color”,
“id”: “body_text”,
“label”: “BG-color”,
“default”: “#cdcdcd”
}
],
“presets”: [
{
“name”: “video with text”
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
-
save.
-
If you are using theme version 2.0 then add section from theme customization. Or else please paste this code {% include ‘video_with_text’ %} wherever you want this section.
this section is dynamic you can change video, image or text any time from the theme customization.