Child THEME

Fichier functions.php Lien fichier myJs.js (à créer) <?php function my_theme_enqueue_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); } add_action( ‘wp_enqueue_scripts’,...

Menu collapse on mobile

JS //Menu collapse on mobile //Menu collapse on mobile function dc_collapse_submenus() { var $menu = $(‘#mobile_menu’), dc_top_level_link = ‘#mobile_menu .menu-item-has-children > a’; $menu.find(‘a’).each(function() {...