Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
578 views
in Plugins by

If there is a long answer ,how to show part of the answer and hide the other part,  add a botton like "press to view all " ?

Q2A version: 1.54

1 Answer

+2 votes
by
selected by
 
Best answer

CSS is most easiest way however it is not rock solid solution for your issue as php.

.qa-template-question .qa-main h1:fist-of-type{
white-space: nowrap;
}
 
you may try substr() if you are looking php solution.
...