Read More/Read Less Button
Read More/Read Less Button
can i make like this in wb? https://www.w3schools.com/howto/howto_js_read_more.asp
- BaconFries
-
- Posts: 5871
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Read More/Read Less Button
See the following:
Pablo wrote: ↑Tue Aug 17, 2021 2:08 pm Here are two templates which demonstrate this functionality:
http://www.wysiwygwebbuilder.com/suppor ... louds.html
http://www.wysiwygwebbuilder.com/suppor ... inter.html
BaconFries wrote: ↑Tue Aug 17, 2021 12:54 pm Maybe this extension will be of use.
viewtopic.php?f=42&t=75719
Re: Read More/Read Less Button
thanks!BaconFries wrote: ↑Mon Oct 31, 2022 8:51 pm See the following:
Pablo wrote: ↑Tue Aug 17, 2021 2:08 pm Here are two templates which demonstrate this functionality:
http://www.wysiwygwebbuilder.com/suppor ... louds.html
http://www.wysiwygwebbuilder.com/suppor ... inter.htmlBaconFries wrote: ↑Tue Aug 17, 2021 12:54 pm Maybe this extension will be of use.
viewtopic.php?f=42&t=75719
i see the examples ( the extension page not open) , I think this option not support in wb and I should use custom code. is this possible to make this work only with CSS without JavaScript? in demo's that use .js file for this work.
Re: Read More/Read Less Button
This cannot be done without JavaScript.is this possible to make this work only with CSS without JavaScript?
Re: Read More/Read Less Button
Did you try the solutions mentioned by BaconFries?
https://www.wysiwygwebbuilder.com/support/wb12tryouts/wb12_clouds.html
https://www.wysiwygwebbuilder.com/support/wb12tryouts/wb12_winter.html
https://www.wysiwygwebbuilder.com/support/wb12tryouts/wb12_clouds.html
https://www.wysiwygwebbuilder.com/support/wb12tryouts/wb12_winter.html
Re: Read More/Read Less Button
yes that use JavaScript i try to find lightweight methodPablo wrote: ↑Tue Nov 01, 2022 6:05 pm Did you try the solutions mentioned by BaconFries?
https://www.wysiwygwebbuilder.com/support/wb12tryouts/wb12_clouds.html
https://www.wysiwygwebbuilder.com/support/wb12tryouts/wb12_winter.html
Re: Read More/Read Less Button
I may have an extension for you that uses only CSS that I once was working on but I will need to dig thru my extension archives to confirm it's up to snuff in releasing. 

Re: Read More/Read Less Button
I use Events that show/hide text as a Read More... option. Works well if you are using flexible / responsive layouts (layout grid, flexbox). A little effort involved but once you figure it out it works fine for me. Might be worth looking into.
Re: Read More/Read Less Button
why you do not complete the extension? that is useful for page SEO without Disturbing the visitor
Re: Read More/Read Less Button
can you send your page to I see what you done?
Re: Read More/Read Less Button
I have many little projects I've started. Sometimes you just decide others get the focus and others fall by the wayside. Not sure it being CSS oriented vs. javascript has anything to do with SEO though. Most Read More buttons use javascript that I've seen.why you do not complete the extension?
Re: Read More/Read Less Button
@wb_user
I've put together a quick demo you can view here.
I should have the extensions available in another day for download.
I've put together a quick demo you can view here.
I should have the extensions available in another day for download.
Re: Read More/Read Less Button
Very nice crispy !!! Do you make it work with events?
Re: Read More/Read Less Button
@bluesman,
No, it does not use events. Is that something you are wanting?
No, it does not use events. Is that something you are wanting?
Re: Read More/Read Less Button
Would event even work here in terms of UX? also what would you do on mobiles?
Running WYSIWYG Web Builder since 2007...
Re: Read More/Read Less Button
https://we.tl/t-EENJ86j5nz
Re: Read More/Read Less Button
You did a great job. i check the code and sadly, it use JavaScript (.js) files for show/hide the text.bkjohns wrote: ↑Thu Nov 03, 2022 6:56 pmhttps://we.tl/t-EENJ86j5nz
look at this image :

when you use this method, wb create and use some js files for show/hide the text and certainly this work effect on page loading time.
please see @crispy68 demo (https://webbuildertemplates.com/extensi ... e-css.html) it not use any js file. for that reason the page is loading time is perfect.
Re: Read More/Read Less Button
Hi crispy... not dead important, but it would be nice to have a smoth slide down when activate the read more... or slide up when close...
Re: Read More/Read Less Button
Agreed but unfortunately, I would have to use javascript and the original poster didn't want to use javascript only css.it would be nice to have a smooth slide down when activate the read more... or slide up when close..
I may consider a javascript option and will look to add that functionality.
Re: Read More/Read Less Button
crispy68 wrote: ↑Thu Nov 03, 2022 8:08 pmAgreed but unfortunately, I would have to use javascript and the original poster didn't want to use javascript only css.it would be nice to have a smooth slide down when activate the read more... or slide up when close..
I may consider a javascript option and will look to add that functionality.

And I hope you will charge for this extension... I will surely pay for it

- BaconFries
-
- Posts: 5871
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Read More/Read Less Button
With WWB18 being released in the near future and its approach to using more Bootstrap over jQuery here is a demo of a read more / less using Bootstrap. The example is from stackoverflow. Yes it is using scripts rather than just css just showing out of interest for all to see.
https://stackoverflow.com/questions/220 ... s-on-click
https://stackoverflow.com/questions/220 ... s-on-click
Re: Read More/Read Less Button
@bluesman,
.
So it may be another day or so before I release it since I spent a ton of time on trying to get this to work. So stay tuned.
I have updated the demo (see link on first page) so you can see the normal (1st example) and the slide version (2nd & 3rd example).
@bacon,
thanks for the link. I may look into that as an option down the road.
So, unfortunately there is not a foolproof way to get it working using just CSS. After many hours and reading a lot about if it's even possible, this is why you need to use javascript plain and simple. However, I was sort of able to get it working using sort of a CSS hack. It should work for the most part but I can't guarantee there couldn't be a situation where it misbehaves. So, I made the smooth slide an option in the extension where you can turn it off or on. If off, it should work without a hitch.... I thinkit would be nice to have a smooth slide down when activate the read more... or slide up when close...

So it may be another day or so before I release it since I spent a ton of time on trying to get this to work. So stay tuned.

I have updated the demo (see link on first page) so you can see the normal (1st example) and the slide version (2nd & 3rd example).
@bacon,
thanks for the link. I may look into that as an option down the road.

Re: Read More/Read Less Button
Very nice slide and fade effectcrispy68 wrote: ↑Fri Nov 04, 2022 2:46 am @bluesman,
So, unfortunately there is not a foolproof way to get it working using just CSS. After many hours and reading a lot about if it's even possible, this is why you need to use javascript plain and simple. However, I was sort of able to get it working using sort of a CSS hack. It should work for the most part but I can't guarantee there couldn't be a situation where it misbehaves. So, I made the smooth slide an option in the extension where you can turn it off or on. If off, it should work without a hitch.... I thinkit would be nice to have a smooth slide down when activate the read more... or slide up when close....
So it may be another day or so before I release it since I spent a ton of time on trying to get this to work. So stay tuned.![]()
I have updated the demo (see link on first page) so you can see the normal (1st example) and the slide version (2nd & 3rd example).
@bacon,
thanks for the link. I may look into that as an option down the road.![]()

Re: Read More/Read Less Button
it work perfectlycrispy68 wrote: ↑Fri Nov 04, 2022 2:46 am @bluesman,
So, unfortunately there is not a foolproof way to get it working using just CSS. After many hours and reading a lot about if it's even possible, this is why you need to use javascript plain and simple. However, I was sort of able to get it working using sort of a CSS hack. It should work for the most part but I can't guarantee there couldn't be a situation where it misbehaves. So, I made the smooth slide an option in the extension where you can turn it off or on. If off, it should work without a hitch.... I thinkit would be nice to have a smooth slide down when activate the read more... or slide up when close....
So it may be another day or so before I release it since I spent a ton of time on trying to get this to work. So stay tuned.![]()
I have updated the demo (see link on first page) so you can see the normal (1st example) and the slide version (2nd & 3rd example).
@bacon,
thanks for the link. I may look into that as an option down the road.![]()
Re: Read More/Read Less Button
and finally come
thanks for your work, @crispy68
https://www.wysiwygwebbuilder.com/forum ... hp?t=95843

thanks for your work, @crispy68
https://www.wysiwygwebbuilder.com/forum ... hp?t=95843
Re: Read More/Read Less Button
Superb work as always. Thank you, Ron,!
Running WYSIWYG Web Builder since 2007...