Woocommerce Categories - by gurhan - on WordPress WooCommerce support

This topic has 6 replies, 3 voices, and was last updated 8 years, 2 months ago ago by Stan Russell

  • Avatar: gurhan
    gurhan
    Participant
    February 8, 2016 at 20:57

    How can I have this category closed at the beginning –> http://prntscr.com/a0penx

    Thank you…

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 9, 2016 at 11:23

    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.

    Avatar: gurhan
    gurhan
    Participant
    February 10, 2016 at 09:51

    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…

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    February 10, 2016 at 12:32

    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.

    Avatar: gurhan
    gurhan
    Participant
    February 10, 2016 at 13:00

    whohooo!!!

    thank you…!!!

    Avatar: stan
    Stan Russell
    Participant
    February 10, 2016 at 13:13

    Hello gurhan,

    you are welcome!

    Regards,
    Stan Russell.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Woocommerce Categories’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.