Category Sub Category wont hide - by bribiz

This topic has 10 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler

  • Avatar: bribiz
    bribiz
    Participant
    September 25, 2017 at 12:11

    on my site http://x-4.org/mreadyproducts/

    On the left: The product categories list hides all sub categories except one
    Permaflor

    I changed the widget to read hierarchy only
    ———–
    Now if I move that same sub-category to to another parent it hides

    Only under the Access Floor Panels Parent does it never hide
    If I add other sub categories – they also dont hide
    —————————-

    What do you think could be the issue please

    9 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 25, 2017 at 13:21

    Hello,

    By default, the first category is opened. But you can comment this line in xstore/js/etheme.js file http://prntscr.com/gpfx4w, then minify content https://jscompress.com/ and replace it in etheme.min.js file.

    Regards

    Avatar: bribiz
    bribiz
    Participant
    September 27, 2017 at 11:24

    Thank you

    Thats all GREEK-CHINESE to me

    No idea how to implements that

    is there a tutorial somewhere please
    I looked at your image – and the Code is not on the same line in my xstore.js file

    PLUS what do I change in that line of code
    Do i remove or add something

    then to minify – I dont know what that means either.

    if you have a details that would be great
    ———-
    Lastly

    why on earth would you make the theme default show a sub category without the option to NOT allow this.

    It has caused hours of head scratching to get to the issue.

    regards
    Brian

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 27, 2017 at 13:29

    Hello,

    Lets go step by step:
    1. Open xstore/js/etheme.js file and find 1983 line:
    $this.find('>li').first().find('> .open-this').removeClass( 'fa-angle-down' ).addClass('fa-angle-down').parent().addClass('opened').find('> ul.children').show();
    you may delete this line or simply add // as on screenshots http://prntscr.com/gqb9wv > http://prntscr.com/gqba1b.
    2. Copy full content of etheme.js file and add the code in this area http://prntscr.com/gqbbml on https://jscompress.com/ site, click Compress JavaScript button.
    3. Copy result http://prntscr.com/gqbccf
    4. Open etheme.min.js file, delete old content and add this code http://prntscr.com/gqbccf.
    5. Save changes in etheme.min.js file.

    Regards

    Avatar: bribiz
    bribiz
    Participant
    September 27, 2017 at 13:53

    this is what you sent
    Rose Tyler wrote:

    Hello,

    Lets go step by step:
    1. Open xstore/js/etheme.js file and find 1983 line:
    $this.find('>li').first().find('> .open-this').removeClass( 'fa-angle-down' ).addClass('fa-angle-down').parent().addClass('opened').find('> ul.children').show();
    you may delete this line or simply add // as on screenshot http://prntscr.com/gqb9wv > http://prntscr.com/gqba1b.
    2. Copy full content of etheme.js file and add the code in this area http://prntscr.com/gqbbml on https://jscompress.com/ site, click Compress JavaScript button.
    3. Copy result http://prntscr.com/gqbccf
    4. Open etheme.min.js file, delete old content and add this code http://prntscr.com/gqbccf.
    5. Save changes in etheme.min.js file.

    Regards
    —————–

    BUT there are no such lines of code in
    xtheme.js
    https://prntscr.com/gqbp3b

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    September 27, 2017 at 14:01

    Could you please provide FTP access in Private Content?

    Regards

    Avatar: bribiz
    bribiz
    Participant
    October 2, 2017 at 11:29

    Access in PM

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 2, 2017 at 13:43

    Hello,

    Please check categories in sidebar now.

    Regards

    Avatar: bribiz
    bribiz
    Participant
    October 2, 2017 at 13:58

    That works not – thank you so much

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    October 2, 2017 at 14:05

    You’re welcome!
    Please find and check
    $this.find('>li').first().find('> .open-this').removeClass( 'fa-angle-down' ).addClass('fa-angle-down').parent().addClass('opened').find('> ul.children').show(); line in your etheme.js file, because after theme update you will be need to repeat changes.

    Regards

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

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

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