fbpx

Addressing Invalid Tags in the Head Element

To ensure the element on your Shopify or WooCommerce site does not contain any invalid tags, follow these steps:

Shopify

  1. Log in to your Shopify admin panel.
  2. Go to Online Store > Themes.
  3. Click Actions > Edit code on the theme you want to edit.
  4. In the Layout folder, open the theme.liquid file.
  5. Check the section for any invalid tags. Valid tags include </code>, <code><meta></code>, <code><link></code>, <code><br /> <style></code>, <code><script></code>, and <code><base></code>.</li> <li>Remove or correct any invalid tags.</li> <li>Save your changes.</li> </ol> <h2>WooCommerce (WordPress)</h2> <ol> <li>Log in to your WordPress admin panel.</li> <li>Go to <strong>Appearance</strong> > <strong>Theme Editor</strong>.</li> <li>In the right-hand sidebar, find and open the <code>header.php</code> file.</li> <li>Check the <code><head></code> section for any invalid tags. Valid tags include <code><title></code>, <code><meta></code>, <code><link></code>, <code><br /> <style></code>, <code><script></code>, and <code><base></code>.</li> <li>Remove or correct any invalid tags.</li> <li>Save your changes.</li> </ol> <p>By ensuring your <code><head></code> element contains only valid tags, you help improve the SEO and overall performance of your eCommerce site.</p> </div> <footer class="entry-meta" aria-label="Entry meta"> <span class="cat-links"><span class="gp-icon icon-categories"><svg viewBox="0 0 512 512" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em"><path d="M0 112c0-26.51 21.49-48 48-48h110.014a48 48 0 0143.592 27.907l12.349 26.791A16 16 0 00228.486 128H464c26.51 0 48 21.49 48 48v224c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112z" /></svg></span><span class="screen-reader-text">Categories </span><a href="https://bloggerinput.com/blog/category/seo-tutorials/" rel="category tag">SEO tutorials</a></span> <nav id="nav-below" class="post-navigation" aria-label="Posts"> <div class="nav-previous"><span class="gp-icon icon-arrow-left"><svg viewBox="0 0 192 512" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M178.425 138.212c0 2.265-1.133 4.813-2.832 6.512L64.276 256.001l111.317 111.277c1.7 1.7 2.832 4.247 2.832 6.513 0 2.265-1.133 4.813-2.832 6.512L161.43 394.46c-1.7 1.7-4.249 2.832-6.514 2.832-2.266 0-4.816-1.133-6.515-2.832L16.407 262.514c-1.699-1.7-2.832-4.248-2.832-6.513 0-2.265 1.133-4.813 2.832-6.512l131.994-131.947c1.7-1.699 4.249-2.831 6.515-2.831 2.265 0 4.815 1.132 6.514 2.831l14.163 14.157c1.7 1.7 2.832 3.965 2.832 6.513z" fill-rule="nonzero" /></svg></span><span class="prev"><a href="https://bloggerinput.com/blog/improve-main-website-navigation/" rel="prev">Improving Main Website Navigation</a></span></div><div class="nav-next"><span class="gp-icon icon-arrow-right"><svg viewBox="0 0 192 512" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M178.425 256.001c0 2.266-1.133 4.815-2.832 6.515L43.599 394.509c-1.7 1.7-4.248 2.833-6.514 2.833s-4.816-1.133-6.515-2.833l-14.163-14.162c-1.699-1.7-2.832-3.966-2.832-6.515 0-2.266 1.133-4.815 2.832-6.515l111.317-111.316L16.407 144.685c-1.699-1.7-2.832-4.249-2.832-6.515s1.133-4.815 2.832-6.515l14.163-14.162c1.7-1.7 4.249-2.833 6.515-2.833s4.815 1.133 6.514 2.833l131.994 131.993c1.7 1.7 2.832 4.249 2.832 6.515z" fill-rule="nonzero" /></svg></span><span class="next"><a href="https://bloggerinput.com/blog/images-optimized-for-speed/" rel="next">Optimizing Images for Speed</a></span></div> </nav> </footer> </div> </article> </main> </div> </div> </div> <div class="site-footer footer-bar-active footer-bar-align-right"> <footer class="site-info" aria-label="Site" itemtype="https://schema.org/WPFooter" itemscope> <div class="inside-site-info grid-container"> <div class="footer-bar"> <aside id="block-25" class="widget inner-padding widget_block"><div class="gb-container gb-container-b621599d"> <div class="gb-grid-wrapper gb-grid-wrapper-f9c4d51e"> <div class="gb-grid-column gb-grid-column-e130ddd5"><div class="gb-container gb-container-e130ddd5"> <p></p> </div></div> <div class="gb-grid-column gb-grid-column-d38eb205"><div class="gb-container gb-container-d38eb205"> <p class="gb-headline gb-headline-4d1bf1c4 gb-headline-text"><a href="https://bloggerinput.com/privacy-policy">Privacy Policy</a></p> </div></div> </div> </div></aside> </div> <div class="copyright-bar"> <span class="copyright">© 2024 Blogger Input</span> • Built with <a href="https://generatepress.com" itemprop="url">GeneratePress</a> </div> </div> </footer> </div> <script id="generate-a11y">!function(){"use strict";if("querySelector"in document&&"addEventListener"in window){var e=document.body;e.addEventListener("mousedown",function(){e.classList.add("using-mouse")}),e.addEventListener("keydown",function(){e.classList.remove("using-mouse")})}}();</script> <!-- Meta Pixel Event Code --> <script type='text/javascript'> document.addEventListener( 'wpcf7mailsent', function( event ) { if( "fb_pxl_code" in event.detail.apiResponse){ eval(event.detail.apiResponse.fb_pxl_code); } }, false ); </script> <!-- End Meta Pixel Event Code --> <div id='fb-pxl-ajax-code'></div><script src="https://bloggerinput.com/wp-content/plugins/advanced-accordion-block/lib/js/separate-accordion.js?ver=4.5.0" id="aagb-separate-accordion-js"></script> <script src="https://bloggerinput.com/wp-content/plugins/advanced-accordion-block/lib/js/group-accordion.js?ver=4.5.0" id="aagb-accordion-group-js"></script> <script id="convertkit-broadcasts-js-extra"> var convertkit_broadcasts = {"ajax_url":"https:\/\/bloggerinput.com\/wp-admin\/admin-ajax.php","action":"convertkit_broadcasts_render","debug":""}; </script> <script src="https://bloggerinput.com/wp-content/plugins/convertkit/resources/frontend/js/broadcasts.js?ver=2.4.8" id="convertkit-broadcasts-js"></script> <script src="https://bloggerinput.com/wp-content/plugins/contact-form-7/includes/swv/js/index.js?ver=5.9.3" id="swv-js"></script> <script id="contact-form-7-js-extra"> var wpcf7 = {"api":{"root":"https:\/\/bloggerinput.com\/wp-json\/","namespace":"contact-form-7\/v1"},"cached":"1"}; </script> <script src="https://bloggerinput.com/wp-content/plugins/contact-form-7/includes/js/index.js?ver=5.9.3" id="contact-form-7-js"></script> <script id="convertkit-js-js-extra"> var convertkit = {"ajaxurl":"https:\/\/bloggerinput.com\/wp-admin\/admin-ajax.php","debug":"","nonce":"5b83c1e0a3","subscriber_id":"","tag":"","post_id":"1142"}; </script> <script src="https://bloggerinput.com/wp-content/plugins/convertkit/resources/frontend/js/convertkit.js?ver=2.4.8" id="convertkit-js-js"></script> <!--[if lte IE 11]> <script src="https://bloggerinput.com/wp-content/themes/generatepress/assets/js/classList.min.js?ver=3.3.0" id="generate-classlist-js"></script> <![endif]--> <script id="generate-menu-js-extra"> var generatepressMenu = {"toggleOpenedSubMenus":"1","openSubMenuLabel":"Open Sub-Menu","closeSubMenuLabel":"Close Sub-Menu"}; </script> <script src="https://bloggerinput.com/wp-content/themes/generatepress/assets/js/menu.min.js?ver=3.3.0" id="generate-menu-js"></script> <script src="https://www.google.com/recaptcha/api.js?render=6LeTSgIoAAAAAHRAXpdQ-vgyof30VdAKrKxIPTBG&ver=3.0" id="google-recaptcha-js"></script> <script src="https://bloggerinput.com/wp-includes/js/dist/vendor/wp-polyfill.min.js?ver=3.15.0" id="wp-polyfill-js"></script> <script id="wpcf7-recaptcha-js-extra"> var wpcf7_recaptcha = {"sitekey":"6LeTSgIoAAAAAHRAXpdQ-vgyof30VdAKrKxIPTBG","actions":{"homepage":"homepage","contactform":"contactform"}}; </script> <script src="https://bloggerinput.com/wp-content/plugins/contact-form-7/modules/recaptcha/index.js?ver=5.9.3" id="wpcf7-recaptcha-js"></script> </body> </html> <!-- Cache served by breeze CACHE - Last modified: Sat, 20 Jul 2024 03:42:54 GMT --> <!-- plugin=object-cache-pro client=phpredis metric#hits=1485 metric#misses=91 metric#hit-ratio=94.2 metric#bytes=1238898 metric#prefetches=0 metric#store-reads=120 metric#store-writes=19 metric#store-hits=38 metric#store-misses=82 metric#sql-queries=10 metric#ms-total=694.39 metric#ms-cache=26.02 metric#ms-cache-avg=0.1885 metric#ms-cache-ratio=3.8 sample#redis-hits=13040589 sample#redis-misses=2238505 sample#redis-hit-ratio=85.3 sample#redis-ops-per-sec=72 sample#redis-evicted-keys=378644 sample#redis-used-memory=208668256 sample#redis-used-memory-rss=180981760 sample#redis-memory-fragmentation-ratio=0.9 sample#redis-connected-clients=2 sample#redis-tracking-clients=0 sample#redis-rejected-connections=0 sample#redis-keys=1477 -->