[Resolved] Category widget – indentation in CSS

Home Forums Support [Resolved] Category widget – indentation in CSS

Home Forums Support Category widget – indentation in CSS

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #332361
    Jiri

    Hi!

    I have an eshop and i’m using category widget in sidebar.
    The problem is, that even with “Show hierarchy”, the hierarchy is not visible.
    Is it possible to create some indentation with CSS and set some offset or special character (just) for the second level of category?
    Thanks in advance for your help!

    Best regards Jiri

    #332439
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link me to the page? Thanks!

    #332816
    Jiri

    Sure, here is it …

    #332947
    Leo
    Staff
    Customer Support

    Try this CSS:

    .inside-left-sidebar .product-categories .children {
        padding-left: 15px;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    Let me know.

    #333028
    Jiri

    Great!
    Thank you very much for your help!

    #333031
    Leo
    Staff
    Customer Support

    No problem!

    #333898
    Jiri

    One more question to this topic, please.
    Can you help me to identify the parent category with css?
    I can’t find the right class. I would like to change the font size and color for the parent category name.
    Thank you very much for your help!

    Best regards Jiri

    #333972
    Leo
    Staff
    Customer Support

    Try this:

    .inside-left-sidebar .product-categories .cat-parent > a {
        font-size: 20px;
        color: #000000;
    }
    #334074
    Jiri

    Great!
    Your support is simply amazing!
    Thank you very much again!

    Jiri

    #334116
    Leo
    Staff
    Customer Support

    You’re very welcome 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.