Originally Posted by
lat9
I just finished similar processing for a site running zc157c with the Bootstrap-4 template. For that site, it was the categories_description that was taking up too much space.
I added a bootstrap toggle-button to view/hide that information. Assuming that your template includes a jQuery load, a simple jQuery onclick handler to show() or hide() that area will work, too.
Like this? All in product description? No CSS?
Code:
<button class="switch">Click me</button>
<div class="text-block collapsed pressed">some text</div>
<script>
$('.switch').on('click', function(e) {
$('.text-block').toggleClass("collapsed pressed"); //you can list several class names
e.preventDefault();
});
</script>
Bookmarks