I have a long list of press release mention links that I would like to be accessible on our site, but preferably it would only show the first five and have a “Show More” link below. When the link is clicked the rest of the links would show and the list would extend. Is this possible? I haven’t been able to find a way to do this.
How you do this will depend on how you have coded this section.
If each press item html is identical with the same classes/ids/data-types/etc. then your on easy street. Here’s my go to codepen for this:
https://codepen.io/dmorda/pen/ptiaG
Note that modules in the drag-and-drop builder have a wrapper that is set to “display: block;” and I have found that the only way to change the display value of one of these wrappers is to use and !important tag which can make jquery awkward. It is best to custom build something like this inside of a custom HubL module rather than attempt to manipulate the module itself.