Home | Need Help? | Archives
July 2, 2020 1:33 pm
Sometimes you may need to put some html code in the Homepage of your shopify site. Here I am sharing you the steps and code to create custom html section.

Create home-custom-html.liquid file under section ( screenshot attached )
Paste this code in the newly created home-custom-html.liquid
<div id="section-cta">
<div class="container">
{{ section.settings.text }}
</div>
</div>
{% schema %}
{
"name": "HomePage Custom HTML",
"settings": [
{
"id": "text",
"type": "html",
"label": "Add custom html below",
"default": "<p>Add your text here</p>"
}
],
"presets": [
{
"name": "HomePage Custom HTML",
"category": "Custom HTML"
}
]
}
{% endschema %}
{% stylesheet %}
{% endstylesheet %}
{% javascript %}
{% endjavascript %}
Posted by allaboutbasic
Categories: Web Development & WordPress
Tags:
Mobile Site | Full Site
Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.