Support System conflict with Divi theme

The accordion toggles for the frontend FAQ items of the Support System plugin are not working in the Divi theme.

  • Ash

    Hello René Munthe Eik

    This is the Divi theme which is not allowing click event to run the faq accordion.

    Please try the following code:

    add_action( 'wp_footer', function() {
    	?>
    	<script type="text/javascript">
    		jQuery(function($){
    			$('.support-system-faq a').click(function(){
    				$(this).next('div').toggle();
    				$(this).next('div').toggleClass('active');
    				$(this).closest('li').toggleClass('active');
    			});
    		});
    	</script>
    	<?php
    } );

    You can use this code in your child theme's functions.php if the theme is not changed. Otherwise mu-plugin is the best option. To create a mu-plugin, go to wp-content/mu-plugins folder. If there is no mu-plugins folder then, create one. Now, inside the mu-plugins folder create file with name anything.php (make sure file extension is .php). Now start with a <?php tag and then put the above code.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!

    Cheers,
    Ash

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.