Skip to main content

How To Fix HTML Errors In Your Theme Code In Shopify

When making changes to your theme settings in the theme editor, you might see an 'HTML error found' warning message in the editor:
Broken theme code banner
This error message appears when a syntax error is found in your theme code. To resolve the problem, you can examine the code in the Liquid file that is referenced in the error message. In the example above, this would be the slideshow.liquid.
Finding the problem in your theme code
  1. Click on the .liquid section file that is linked to in the error message. This will take you to the Edit HTML/CSS page, and the file will open in the code editor.
  2. Look through the code in the file and try to find invalid HTML or Liquid. The code editor will show potential syntax errors in red. Common problems include the following:
    • Extra closing HTML tags, for example, a closing </div> without an opening <div>
    • Extra unclosed HTML tags, for example, an opening <div> without a closing </div>
    • Malformed HTML tags, for example, <div class="my-class" without a >
    • Malformed Liquid code
    • Broken HTML in an included theme snippet file
  3. Once you've found the problem, correct the code in your theme file.
  4. Click Save.
  5. Click Customize to return to the theme editor, and confirm that the error message is gone.

Comments

Popular posts from this blog

How PayPal integration works in Shopify

PayPal How PayPal integration works in Shopify PayPal allows payment through credit cards, bank accounts, buyer credit, or PayPal account balances. Note You'll be charged transaction fees each time a customer makes a purchase using this payment method, unless you also activate Shopify Payments. PayPal is one of Shopify’s default payment providers. As soon as you open a store, you're given a PayPal Express Checkout account with the email you used to sign up for your Shopify store. Before you can collect payments for orders made with PayPal, you'll need to set up your PayPal account. First of all we strongly suggest using PayPal Express instead of PayPal Standard for the following reasons: Standard is deprecated (support for it will be removed from Shopify eventually). Express is more reliable because PayPal doesn't have to send IPNs to Shopify (payment notifications) which have a tendency to get lost sometimes which causes orders to not get mar...

How To Setup PayPal Seller Protection in Shopify

How To Setup PayPal Seller Protection in Shopify If your customers use PayPal as a payment method, then you might be eligible for  PayPal Seller Protection . Seller Protection protects you from chargebacks, reversals, and claims for the full amount on eligible payments due to an unauthorized transaction or an item not received. Orders purchased through PayPal will have one of three Seller Protection ratings: Eligible : the order is protected by PayPal's Seller Protection for unauthorized payments and items not received. Partially eligible : the order is protected by Seller Protection for item not received. Ineligible : the order is not protected by Seller Protection. Note PayPal Seller Protection is not managed by Shopify. If you're having issues with a PayPal transaction, then you should  contact PayPal . Shopify is unable to manage or access your PayPal account. Eligibility criteria To be eligible for Seller Protection, you need to meet all the basic req...

How To Add Social Media In Shopify

There are various customizations that you can make to integrate social media with your online store: In this section: Add social media buttons Embed a Twitter feed in your online store Use Twitter cards Add Disqus to your blog Support for themes Before customizing your theme, make sure that you understand what level of support is available. Supported customizations If you use a  free theme from Shopify , we can help if you have trouble with supported customizations. Supported customizations include all tutorials in the  Shopify Help Center  that do not have the warning message shown in the  Unsupported customizations  section below. You can  chat, email, or call us  any time. Unsupported customizations Unsupported customizations are outside the scope of our support service. This means that we’re not able to help you if you run into problems. All unsupported customizations include the following warning message: Caution T...