# More or Less lost with hiding elements

**URL:** <https://talk.jekyllrb.com/t/more-or-less-lost-with-hiding-elements/6739>\
**Category:** Help\
**Created:** [November 28, 2021, 7:34pm UTC](https://talk.jekyllrb.com/t/more-or-less-lost-with-hiding-elements/6739 "2021-11-28T19:34:56Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![MichaelCurrin](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.jekyllrb.com/michaelcurrin/32/2340_2.png) [@MichaelCurrin](https://talk.jekyllrb.com/u/MichaelCurrin)\
**Post date:** [December 1, 2021, 6:10am UTC](https://talk.jekyllrb.com/t/more-or-less-lost-with-hiding-elements/6739/7 "2021-12-01T06:10:02Z")

</div>

Yes I was thinking you can use a native HTML approach with no JS to show more.

As discussed here

> [@Plugin for show more code block](https://talk.jekyllrb.com/t/plugin-for-show-more-code-block/4149):
>
> Hi folks, I want to include code blocks into my blogs posts, this is all working fine, but some of the code blocks can be quite long, is there a way of limiting the number of lines shown with with a display more/expand functionality?

The arrow changes direction for open and closed and maybe you can find the state of the accordion with CSS and add text to it based on that for More vs Less. Or have both words and have them only visible for the correct state.

---

_[View the full topic](https://talk.jekyllrb.com/t/more-or-less-lost-with-hiding-elements/6739)._
