Read more button

Hi. I am trying to build buttons which will open/close text below them, when clicking on them. this is am important issue due to my client’s requests. I’ve notice that the ‘read more’ in the tex editor is not working. so I tried to use the html editor, JS, css to achieve that, but it didn’t work…
here is the js fiddle code I am trying to use:

https://jsfiddle.net/tomjohnson1492/egg5q/7/

(even, thogh it is code of JS developer, I don’t know js, so maybe I am making a mistake?)
any solution?
thanks in advance :slight_smile:
`

[Content Hidden]

Why not use the Tabs or Accordion modules already built in to BB, could save yourself a lot of heartburn :slight_smile:
HTH, Dave

You are right, despite of the fact I don’t have the premium version yet. Now I’ve notice I have an external accordion module (not of BB), so thanks for you advice!

Glad you found a solution - and yes I do forget there are different BB versions…
Cheers, Dave

Hey Avnmer,

I tried the read more tag on a page without BB and it doesn’t do anything still. Not really sure what’s the use of that though.

I did try your jsfiddle js code, markup and CSS and it works just fine. You may need to change $ to jQuery to make it work.

Ben

OK. Great to know that. I guess I will need that code when I would like to make expanding things in other style than accordion, when I’ll do that, I will give it a try.

Thanks a lot :slight_smile:

Hey Avnmer,

No worries! You can check the article below for more information. It’s an old one but I think it still applies! :slight_smile:
https://digwp.com/2011/09/using-instead-of-jquery-in-wordpress/

Ben