custom.liquid

I used the custom.liquid on my shopify product page, i wanted to create a user form

Here is my code;

User Information Form /* Add some basic styling to make the form look better */ form { max-width: 600px; margin: 0 auto; } label { display: block; margin-bottom: 5px; } input, textarea { width: 100%; padding: 10px; margin-bottom: 15px; box-sizing: border-box; /* Include padding in the width */ } button { width: 100%; /* Make the button full width */ padding: 12px; background-color: #000; color: #fff; border: none; cursor: pointer; border-radius: 5px; /* Add border-radius for rounded corners */ }

User Information Form

Name:

Address:

Phone Number:

Submit

So after adding this custom block and saving it the changes are not showing on my storefront

Hi Checkonline,

If you add this code as a section or snippet rather than as a block and assign it to a page template, is the code rendering? The custom Liquid block is generally for smaller components than what you’re adding, and you shouldn’t be including tags like or or meta tags as these are already included in the theme. I would try with just the code within the tags.