show/hide chunk of text?
-
Hello,
I'm wondering if it's possible to implement a hide/reveal button in gridder which, when clicked, would reveal a styled paragraph of text?
For example, I would like to have a 'description' button that, when clicked, reveals information. Please let me know, thank you!
-
Dear @mrrpringle
this is a nice idea!Until now you would need to code that with jQuery.
Make a new div which you give a class. For example: buttonThen you can give the box which you want to hide and show another class. For example: the-box
In CUSTOM CSS you add this:
.the-box { display: none; } .box-active .the-box { display: block !important; }
With jQuery you can make a function which activates the box:
<script> jQuery(document).on("click", ".clickme", function(event) { jQuery("body").addClass("box-active"); }); </script>
This quick example demonstrates you how it could work You still need to work on it.
You are looking for something like an accordeon…
Hope I could help!
Best!
Marius
-
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it