Created
April 8, 2015 18:33
-
-
Save makfruit/8f55e57945de9089a014 to your computer and use it in GitHub Desktop.
An HTML/JS snippet for Ecwid to move category description and subcategories under the subcategories/products listing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
An HTML/JS snippet for Ecwid to move category description and subcategories under the subcategories/products listing | |
https://gist.github.com/makfruit/8f55e57945de9089a014 | |
Put this code after Ecwid integration code on your site | |
--> | |
<script src="//code.jquery.com/jquery.min.js"></script> | |
<script> | |
Ecwid.OnPageLoaded.add(function(page) { | |
if (page.type == 'CATEGORY') { | |
jQuery(".ecwid-productBrowser-categoryDescription, .ecwid-productBrowser-subcategories-mainTable").insertAfter(".ecwid-productBrowser-category"); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment