Accordion Not Opening on Divi Theme

Hi there!

I was updating the copy on a website for a business friend ( and the accordion is not opening on the home page. He does have the WooCommerce plugin and I"m not able to remove it. I heard that may cause a conflict so my question is, how do I fix it?

I saw another thread that said to add this code:

function add_custom_support_scripts(){ ?>
<script type="text/javascript">
jQuery(' a').click(function(){
if( jQuery(this).hasClass('active') ){
} else{
<?php }
add_action('wp_footer', 'add_custom_support_scripts');

I did but it isn't working. Although, it is possible I put it in the wrong spot because that thread didn't say where to add it. I added it at the bottom of the functions.php file but it didn't change anything.

Can anyone help? Thanks!