Home › Forums › WoodMart support forum › Tabs + Slider = Content Disappearing › Reply To: Tabs + Slider = Content Disappearing
Tom
Hi Elise,
I added it to my functions.php but i get the following error when I view the site now.
Parse error: syntax error, unexpected token “$”, expecting variable in D:\wamp64\www\wp-content\themes\woodmart-child\functions.php on line 9
this is my functions.php
<?php
/**
* Enqueue script and styles for child theme
*/
function woodmart_child_enqueue_styles() {
wp_enqueue_style( ‘child-style’, get_stylesheet_directory_uri() . ‘/style.css’, array( ‘woodmart-style’ ), woodmart_get_theme_info( ‘Version’ ) );
}
add_action( ‘wp_enqueue_scripts’, ‘woodmart_child_enqueue_styles’, 10010 );
(function($) {
$(document).on(‘click’, ‘.wd-tabs .wd-nav-tabs > li’, function (e) {
var $slider = $(this).parents(‘.wd-tabs’).find(‘.wd-slider’);
if ( $slider.length ) {
setTimeout( function () {
$slider.flickity(‘resize’);
}, 150)
}
});
})(jQuery);