Last active
February 29, 2016 18:16
-
-
Save makfruit/11148226 to your computer and use it in GitHub Desktop.
An HTML/JS snippet for Ecwid to move category description 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 under the subcategories/products listing | |
https://gist.github.com/makfruit/11148226 | |
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").insertAfter(".ecwid-productBrowser-category"); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Makfruit
I too am wanting to add a snippet under my images
in the grid format, could this be done by taking say the first 100 characters from the main description?
So you would have Image on top, then Title , then text snippet, also have a active "details" link.
The image shown is just a sample,not my website
my website is. www.wildflowersaromatherapy.com
Thanks
Peter