Dear @robochicken
Because your Lay Theme website is a "Single Page" JavaScript application you are not able to use PHP.
:-)
We are working on a . PHP version of Laytheme.
Best!
Marius
Dear @Andreas
it is possible that the Laytheme editor will mark it is an error. it will still work.
But some browsers don't support it though…
Best!
Marius
Dear @mrrpringle
Maybe in the forum already asked that question and got an answer :-)
Here is a pretty good tutorial for an accordeon with jQuery:
https://css-tricks.com/snippets/jquery/simple-jquery-accordion/
But in the end this here is the key:
$('.accordeon-child-button').on('click', function () {
$(this).parent().toggleClass("accordeon-child-open");
})
Please note this:
http://laytheme.com/documentation.html#custom-javascript
Best!
Marius