Second Subcategory - by Tobio - on WordPress WooCommerce support

This topic has 10 replies, 4 voices, and was last updated 10 years, 4 months ago ago by Jack Richardson

  • Avatar: Tobio
    Tobio
    Participant
    July 22, 2014 at 16:41

    Hello,

    please tell me how to disable the second Subcategory in the navigation on the left side.

    I dont want that the text “SPZ” is shown until you klick on the subcategory in the navigation.

    Many thanks

    Please, contact administrator
    for this information.
    9 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    July 22, 2014 at 16:46

    Hello,

    Your site is under maintenance mode, so we’re unable to view it. Please provide us with wp-admin panel in Private Content.

    Regards,
    Eva Kemp.

    Avatar: Tobio
    Tobio
    Participant
    July 22, 2014 at 17:32

    OH sorry… now please retry

    Avatar: Eva
    Eva Kemp
    Support staff
    July 22, 2014 at 20:55

    Hello,

    To close the first category in the sidebar you need edit the file wp-content/themes/idstore/js/script.js. Find the code jQuery('.categories-group.has-subnav:first').addClass('opened').find('ul').show(); (line 307) and comment it.

    Regards,
    Eva Kemp.

    Avatar: Tobio
    Tobio
    Participant
    July 22, 2014 at 22:06

    Hi Eva
    sorry but that doesn’t solve it… I want that the 2 subcategory is not displayed.

    INDUSTRIE
    -Keilriemen
    –optibelt SK
    —SPZ (this should not be shown in the nav)

    Regards,
    Tobi

    Avatar: Robert Hall
    Robert Hall
    Support staff
    July 23, 2014 at 06:18

    Hello,

    Try add this code to custom.css file

    .product-categories .cat-item-34 {
    display:none;
    }

    Here is a video tutorial how to create custom.css: https://www.youtube.com/watch?v=Qok2zRedRMY&feature=youtu.be.

    Regards,
    Robert Hall.

    Avatar: Tobio
    Tobio
    Participant
    July 30, 2014 at 18:07

    Hello,

    Fist of all i wanna say sorry for my bad description.
    But I just found it by myselve 🙂

    I comment out line 307 in idstore\js\script.js
    // jQuery(‘.categories-group.has-subnav:first’).addClass(‘opened’).find(‘ul’).show();
    I copied to my custom css:

    .wpsc_categories li > ul > li > ul{
    display:none;
    }

    So no category is opend when visiting my shop. When i click on any category, only the second category level is shown.

    Here a short example
    You have a lot of categories and subcategories

    I wanna only show Category A and Categorie AA in my Navigaion, otherwiese it will confuse my customers. When i click on Categorie AA i see the other categories.

    I hope that clarify my situation a bit more.
    Attached 2 pictures.

    Before:

    After:
    after

    Best Regards
    Tobi

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 30, 2014 at 18:10

    Hello,

    It requires additional customization and is a paid service.

    Regards,
    Jack Richardson

    Avatar: Tobio
    Tobio
    Participant
    July 30, 2014 at 18:21

    Hi Jack,

    thanks for info.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    July 30, 2014 at 18:28

    You’re welcome!

    Regards,
    Jack Richardson

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

The issue related to '‘Second Subcategory’' 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.