Woocommerce Categories Widget – Toggling

This topic has 5 replies, 3 voices, and was last updated 10 years, 3 months ago ago by Robert Hall

  • Avatar: sitehook
    sitehook
    Participant
    August 13, 2014 at 14:55

    I’ve posted about this before in the forum and in the comments section.

    Unfortunately, each time the Legenda theme is updated, I run into the same issue and the protocol to correct the issue changes…

    Screenshot to Show Objective

    Please review the attached screenshot carefully so this next part makes sense. (Thanks.)

    In past, I was given a snippet of code and told to comment it out in the js/etheme.js file. That has corrected the issue in past.

    After updating to Legenda 2.3 I found the js/etheme.js file but the code has changed. Can you please tell me what to comment out in order to correct this? And is there a way to permanently correct this without having to edit this file every time? I can’t imagine other theme users want the first category to automatically toggle.

    Thanks in advanced for your help.

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    August 13, 2014 at 16:07

    Hello,

    Previously you were provided with the following reply:
    To close first category, edit wp-content/themes/legenda/js/etheme.js file. Find and comment out line 1389
    etCats.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();

    We recommend you to make changes in a child theme to avoid losing modifications after the theme update.

    Regards,
    Eva Kemp.

    Avatar: sitehook
    sitehook
    Participant
    August 14, 2014 at 22:39

    Thank you Eva. You’re always so helpful! If this info is already out there, please accept my apologies. I did a search to find all the places we had contacted on this, but must have missed the latest and greatest.

    Thanks again!

    Avatar: sitehook
    sitehook
    Participant
    August 15, 2014 at 00:42

    I’ve set up a child theme and activated it. I set up a folder called js within the child directory and included the etheme.js file, but it didn’t work. So, I just went ahead and made the change on the parent theme.

    Anyway, thanks for your help.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 15, 2014 at 06:07

    Hello,

    You’re welcome!
    But in the next time we recommend you to make backup file and after that make changes in parent theme.

    Regards,
    Robert Hall.

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

You must be logged in to reply to this topic.Log in/Sign up

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