This topic has 6 replies, 3 voices, and was last updated 8 years, 2 months ago ago by Stan Russell
How can I have this category closed at the beginning –> http://prntscr.com/a0penx
Thank you…
Hello,
To close first category, edit wp-content/themes/woopress/js/etheme.js file. Find and comment out line 1808
$this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
Best regards,
Jack Richardson.
I created a js directory in the royal-child, and put the modified etheme.js in it…
it didn’t work???
however, when i modify the etheme.js in the main directory (not in the royal-child), your modification works…
ps: yes, the child theme is active because i already have a few things in it…
Hello,
You need add the code in your child theme functions.php file:
add_action( 'wp_enqueue_scripts', 'etheme' );
function etheme() {
wp_enqueue_script( 'etheme', get_stylesheet_directory_uri() . '/js/etheme.js' );
}
Create “js” folder in child theme and copy etheme.js file with needed changes.
Best regards,
Jack Richardson.
whohooo!!!
thank you…!!!
Hello gurhan,
you are welcome!
Regards,
Stan Russell.
The issue related to '‘Woocommerce Categories’' has been successfully resolved, and the topic is now closed for further responses