My product's description is too long, because of that, i really want to add something like read more button... the content can be extended only if someone click on the read more button?

I'm using magento2


This is the one we use. Put the things you want hidden in your click here for more button in between <div class="block-content"> and the first </div>

<div class="collapsible">
<p style="text-align: center;"><button data-toggle="collapse" data-target="#demo">Click here for more...</button></p>
<div id="demo" class="collapse">
<div class="block-content">

Hope this helps!

  • But where and how to add this code ?
    – Ralfe
    Dec 4 '17 at 12:07
  • In your description Dec 4 '17 at 13:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.