Found some code on JSfiddle but doesn't work on codepen

Hi all

I’m trying to complete my tribute page and wanted to have the bio part default to collapsed on mobile view but expanded on desktop view.

I found some code on stackoverflow that seemed as if it would do the trick.
this post

even a couple of working demos on JS Fiddle (linked in the stackoverflow posts)

but when I try and implement in my site I can’t get the button to work!
here is the pen I was experimenting with.

I guess it is something to do with what I’ve included and where but I can’t figure out what I’m missing.

Any help greatly appreciated!

Shep

You need to add jQuery in js settings.

Arghhhh! thought I’d tried that!

Always the littlest thing!

Thanks

1 Like