In this tutorial you are going to learn how to create very nice, yet very powerful Elementor expandable elements. It works for text editor elements, images elements, and even other containers elements.
It works really well with Elementor dynamic data.
See the demo here:
Features:
- Works with dynamic data
- Works for as many Elementor expandable elements as you need
- Individually set "read more" and "read less" messages of your choice
- Works with any element. Expand and collapse images too, or even whole containers!
Let's get started!
First, let's copy paste this code in your project
This is a premium tutorial. Purchase access to unlock the full tutorial.
11 Responses
Worked perfectly. Don't forget to remove the paddings at the top and bottom of the sp-expandable container, otherwise a part of the container will be displayed despite the defaultPreviewHeight = "0px" setting.
Thanks for the great feature 🙂
Hey Fabian!
Yes indeed, need to be careful with top and bottom padding here... otherwise the height won't be what you expect it to be!
Cheers!
Hi Maxime, thanks again for another great feature. How do I achieve the chevron icons that rotate when View More / View Less is clicked?
Hey Gideon!
I updated the code recently and this should now work again as expected!
Please import the updated code to your project.
Thanks Maxime! Appreciated!
Hi Maxime, I am upgrading from 'Amazing Elementor Show Hide Section Button' tutorial, as I have switched to containers that are nested.
The overwrite settings for the text thats displayed within each toggle button doesn't appear to be working for me however when set under Advanced > Attributes.
When I set the following in Advanced > Attributes for each button, only the text set within the code snippet appears?
data-expand-text|Custom Text Expand
data-collapse-text|Custom Text Collapse
Also not getting the rotate icon feature, as I had working before with the previous tutorial.
Are you able to verify these are working? Thanks!
Hey James,
Could you share with me the URL of the page where you are testing this? I will have a look what's going on!
Cheers
Hi Maxime,
Thanks for your reply - the updated code now works great! Thanks again!
James
Awesome James, glad it works now!
Hi Maxime
Is it possible to make it work with a section or column?
Regards
Stefan
Hey Stefan!
I think it should be working for these already. Columns might be a bit buggy though... Sections should work.
Have you tried? If you have tried and have issues, please share your page with me I will check.