Accordion Category Style - by yohantosadu

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

  • Avatar: yohantosadu
    yohantosadu
    Participant
    March 3, 2018 at 06:03

    How to make accordion category product cat page like accordion category style in home and sho page.

    http://prntscr.com/im63c2

    —————————————————————————————–
    I attach an existing global css below

    .products-grid .product {
    width: 33.33% !important;
    }
    .row-count-3 .product:nth-child(2n+1), .home .row-count-4 .product:nth-child(2n+1){
    clear: none !important;
    }

    .products-loop.products-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    float:left;
    }
    .products-loop.products-grid .product {
    position: relative;
    padding-bottom: 35px;
    }
    .products-loop.products-grid .add_to_cart_button {
    position: absolute;
    left: 3px;
    bottom: 0;
    }
    .products-loop.products-grid .product .price,
    .products-loop.products-grid .product del {
    font-size: 14px !important;
    }
    .products-loop.products-grid .product .add_to_cart_button {
    padding: 5px;
    }

    .pagination-cubic li span.page-numbers.current,
    .woocommerce-message .button, .cart-collaterals .checkout-button {
    color: #fff !important;
    }

    .single-product .product-information .cart button[type=”submit”], .footer-product a, .footer-product .show-quickly,
    .quick-view-popup .product-information .cart button[type=”submit”] {
    color: white!important;
    }
    .home .categories-menu-element.product-categories.with-accordion {
    border: 2px solid #f3b714;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
    }
    .home .categories-menu-element.product-categories > li > a {
    padding-left: 20px !important;
    }
    .home .categories-menu-element.product-categories.with-accordion h2 {
    text-align: center;
    border: 2px solid #f3b714;
    background-color: #f3b714;
    color: white;
    font-size: 20px;
    padding: 10px;
    }
    .post-type-archive-product #woocommerce_product_categories-2 .widget-title:before,
    .post-type-archive-product #woocommerce_product_categories-2 .widget-title:before {
    display: none;
    }
    .post-type-archive-product #woocommerce_product_categories-2 .widget-title {
    text-align: center;
    border: 2px solid #f3b714;
    background-color: #f3b714;
    color: white;
    font-size: 20px;
    padding: 10px;
    }
    .post-type-archive-product #woocommerce_product_categories-2 .widget-title span {
    background: #f3b714;
    }
    .post-type-archive-product #woocommerce_product_categories-2 {
    border: 2px solid #f3b714;
    margin-right: 0px;
    margin-bottom: 20px;
    margin-left: 0px;
    }
    .post-type-archive-product #woocommerce_product_categories-2 li > a {
    padding-left: 20px !important;
    }
    .post-type-archive-product #woocommerce_product_categories-2 .product-categories {
    margin-bottom: 0px;
    }

    7 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 5, 2018 at 08:23

    Hello,

    Please change this code http://prntscr.com/imz2xb to:

    .archive.woocommerce-page  #woocommerce_product_categories-2 .widget-title:before,
    .archive.woocommerce-page  #woocommerce_product_categories-2 .widget-title:before {
        display: none;
    }
    .archive.woocommerce-page  #woocommerce_product_categories-2 .widget-title {
        text-align: center;
        border: 2px solid #f3b714;
        background-color: #f3b714;
        color: white;
        font-size: 20px;
        padding: 10px;
    }
    .archive.woocommerce-page  #woocommerce_product_categories-2 .widget-title span {
        background:  #f3b714;
    }
    .archive.woocommerce-page  #woocommerce_product_categories-2 {
        border: 2px solid #f3b714;
        margin-right: 10px;
        margin-bottom: 20px;
        margin-left: 0px;
    }
    .archive.woocommerce-page  #woocommerce_product_categories-2  li > a {
        padding-left:  20px !important;
    }
    .archive.woocommerce-page  #woocommerce_product_categories-2 .product-categories {
        margin-bottom: 0px;
    }

    Regards

    Avatar: yohantosadu
    yohantosadu
    Participant
    March 5, 2018 at 09:50

    okay FIx. and

    arrow right and left navigation black, how to turn it white
    http://prntscr.com/in01qn

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 5, 2018 at 11:12
    footer .owl-nav .owl-next:before, footer .owl-nav .owl-prev:before {
        color:  white;
    }
    

    Regards

    Avatar: yohantosadu
    yohantosadu
    Participant
    March 5, 2018 at 11:33

    okay fix, and
    how to shrink font size breadcrumps
    http://prntscr.com/in1f3b

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 5, 2018 at 14:10

    Theme Options > Typography > Breadcrumbs > Page heading title.

    Regards

    Avatar: yohantosadu
    yohantosadu
    Participant
    March 6, 2018 at 18:25

    okay, fix. thank you for Great Support

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 7, 2018 at 08:37

    You’re welcome!

    Regards

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

The issue related to '‘Accordion Category Style’' has been successfully resolved, and the topic is now closed for further responses

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.