Answer the question
In order to leave comments, you need to log in
How to automatically hide long posts under the spoiler?
This means that the entry appears on the page as a whole, not as a quote, but most of the content will be hidden by the "expand" button, as in many sites. I googled for a long time, but I didn’t find anything about “automatically”.
Answer the question
In order to leave comments, you need to log in
There is no magic button, you need to write in js, or look for ready-made solutions. For example: ReadMore.js (exemple)
Well, or still display a part of the text, and on a click on the button pull it out with ajax.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question