What's New
Viewing 14 posts - 1 through 14 (of 14 total)
Viewing 14 posts - 1 through 14 (of 14 total)
You must be logged in to reply to this topic.
Tagged: description
Hi,
1. Add the following code to Theme editor > Custom codes > Custom CSS Code:
.product-description.with_showmore_button .style_content{max-height:200px;overflow:hidden;}
.product-description.with_showmore_button .desc_showmore{display:block;}
.desc_showmore{display:none;}
2. Add the following code to Theme editor > Custom codes > Custom javascript Code:
$(document).ready(function(){
if($('.product-description').length && $('.product-description').height()>200){
$('.product-description').addClass('with_showmore_button ').append('< a href=" " class="desc_showmore" title="Show more">Show more</ a>');
}
3. Clear your browser cache.
Best regards.
Hi,
thank you but in this page the code is showing:
You must be logged in to reply to this topic.