New Landing How can we help? Atelier 1/4 width sidebar in shop and 1/3 width in blog?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in: Atelier
  • #317836
    jonathanthomas
    Member
    Post count: 17

    Is there anyway, via the options or some custom CSS to set a 1/4 width sidebar in the woocommerce shop and a 1/3 width sidebar on the rest of the site?

    Thanks!

    #318058
    David Martin – Support
    Moderator
    Post count: 20834

    You could use this CSS:

    .post-type-archive-product .sidebar {
        max-width: 25%;
    }

    Then enable this 1/3 globally:

    #318157
    jonathanthomas
    Member
    Post count: 17

    This did not work for me on this page: https://tatianaeast.com/collections/barware/ — It’s still 1/3 width when set globally. Seems that this may be quite complicated to do?

    #318461
    David Martin – Support
    Moderator
    Post count: 20834

    Your category pages, are not the shop page so you need to amend the CSS to:

    .post-type-archive-product .sidebar,
    .tax-product_cat .sidebar {
        max-width: 25%;
    }
    #318471
    jonathanthomas
    Member
    Post count: 17

    I have tried this as well and I still get a 1/3 width sidebar. I’m not sure what I’m doing wrong. Having looked at the CSS I think it may have to do with the attributes in the attached screenshot?

    Again, thanks for all your help!

    Attachments:
    You must be logged in to view attached files.
    #318642
    David Martin – Support
    Moderator
    Post count: 20834

    If I add the code supplied, it works:

    #318719
    jonathanthomas
    Member
    Post count: 17

    You are correct! This does work. I had a missing curly brace somewhere in my custom CSS that was causing issues.

    Thank you so much for your patience and help.

    #318739
    David Martin – Support
    Moderator
    Post count: 20834

    Glad to help. If you have found the theme/support useful, we appreciate it if you can leave feedback on our item if you have the time as it really helps us out.

    Thanks.

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register