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> |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Makfruit. Is there a way to edit this snippet so that the description for my subcategories displays on the main category page under each thumbnail?
So my main category is Fragrances. When the Fragrances category page is shown, there is a thumbnail for each fragrance sub-category (eg. Lavender, Rose etc) and directly under each thumbnail I would like to show that sub-category's description. Many thanks.