Hey @cvdw,
The code is for the Classic Accordion. You most probably are using the V2 or just the Accordion Element so the code should look like the following:
(function($){
$('.x-acc-header').on('click touchend', function(){
if( ! $(this).hasClass('x-active') ) {
$(this).text('Read More');
} else {
$(this).text('Read Less');
}
})
})(jQuery);
One thing that we didn’t notify in the old thread is that providing custom code is outside the scope of our theme support. We provided it as an example only. We will not support issues that will arise from the use of any custom code nor will we provide further enhancements. For that, you need to hire a developer.
Hope that helps and thank you for understanding.