Last active
December 15, 2017 16:55
-
-
Save svaustin66/48b8215dc918fe1538c2af2942c2b47c to your computer and use it in GitHub Desktop.
HTML for Liquid Template for Show More/Less
This file contains hidden or 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
{% if product.description.size > 700 %} | |
<div class="product-description-short"> | |
{{ product.description | truncate: 500, ". . . " }}<a class="readmore" href="#">Show More ></a> | |
</div> | |
<div class="product-description-full"> | |
{{ product.description }} | |
<br><a class="readless" href="#">< Show Less</a> | |
</div> | |
{% else %} | |
{{ product.description }} | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment