5

Is it possible to hide the preview shown by default when Matrix blocks are collapsed?

You can collapse Matrix blocks by clicking the “Collapse” menu option, or by double-clicking on a block’s title bar. When a block is collapsed, its title bar will show a preview of its content, so you can still identify which block it is.

It's useful to just be able to see the content outline made up by block types clear and simple. A lot of the time in my case the preview is irrelevant so it would be great to turn this off across the board by default.

1 Answer 1

3

There is no out-of-the-box way to do this, but you can make use of a plugin like Lindsey Diloreto's CPCSS to set display: none on the body.ltr .matrixblock > .titlebar > .preview class.

2
  • Thanks Aaron, that would do the job. It could be quite nice to have this as an option on the matrix field itself though. In some cases a string preview just isn't applicable.
    – Ian Young
    Commented Aug 18, 2015 at 21:41
  • Sounds like a great opportunity to post in our feedback forum! Can you go ahead and choose the answer as correct to close out the question? Commented Aug 18, 2015 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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