dynamic php menu with hidden sub-categories only showing when the category name is clicked

well, I went for a different approach, in this case with radiobuttons. It is working and it is 95% the result desired. <?php $cats = array(array(‘first’, ‘sub-first’, ‘sub-sub-first’), array(‘second’, ‘sub-second’), array(‘third’, ‘sub-third’, ‘sub-sub-third’)); ?> <label>Categorias</label> <?php foreach($cats as $cat): if (isset($cat[0])): ?> <div class=”div1″> <input type=”radio” id=”<?php echo $cat[0] ?>” name=”age” value=”30″> <label for=”<?php echo … Read more

child-theme style not changing on localhost

Try this: function enqueue_child_theme_styles() { wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( ‘child-style’, get_stylesheet_uri() . ‘?v=’ . filemtime( get_stylesheet_directory() . ‘/style.css’ ) ); }

Inclution place of CSS file

Put this function to ‘functions.php’ in theme directory to remove style.css while wordpress loading your styles. add_action(‘wp_enqueue_scripts’, function() { wp_dequeue_style(‘put-your-sytle-css-handle-name’); });