Which theme are you using?
1. Download a new fresh copy of whichever theme you are using
2. Copy everything inside the main javascript file (usually named theme.js)
3. Paste it inside your broken theme's theme.js file.
This will replace your broken Javascript with one that works. If you made any customizations in the javascript file they will be overridden.
Kind regards,
Diego
Add this to the bottom of your theme.js.liquid file:
$(document).ready(function() {
var sections = new theme.Sections();
sections.register('header-section', theme.HeaderSection);
});
The original Supply theme code registers other sections too, but not sure if they were removed on purpose or not:
$(document).ready(function() {
var sections = new theme.Sections();
sections.register('collections-list-template', theme.FeaturedCollections);
sections.register('collection-row-section', theme.CollectionRows);
sections.register('collection-template', theme.Collection);
sections.register('header-section', theme.HeaderSection);
sections.register('list-collections-template', theme.ListCollections);
sections.register('map-section', theme.Maps);
sections.register('product-template', theme.Product);
sections.register('search-template', theme.Search);
sections.register('slideshow-section', theme.SlideshowSection);
});
User | Count |
---|---|
37 | |
19 | |
19 | |
12 | |
11 |