Site icon Hip-Hop Website Design and Development

Modify some CSS with features if (function_exists

I’ve code perform php in my dad or mum theme as path my_parent_theme/embrace/addon/myfile. I’ve tried utilizing get stylesheet to load the dad or mum perform with no succeed. I simply dont know the best way to deal with my file to adjustments some css.

Right here is my perform in my_parent_theme/embrace/addon/myfile

add_filter( 'larismanis_style', 'larismanis_wc_cart_popup_style' );
perform larismanis_wc_cart_popup_style( $type ) {
    if ( larismanis_get_integration_wc( 'wc_cartpopup_disable' ) ) {
        return $type;
    }
    $type = $type.'.tp-cart-popup .modal-body { padding-bottom:0; }';
    $type = $type.'.tp-cart-popup button.shut { background: none; border: none; }';
    $type = $type.'.tp-cart-popup .woocommerce ul.cart_list { margin: 0; }';
    $type = $type.'.tp-cart-popup .woocommerce ul.cart_list li { padding-left: 0; }';
    $type = $type.'.tp-cart-popup .woocommerce ul.cart_list li .take away { show: none; }';
    $type = $type.'.woocommerce ul.merchandise li.product .added_to_cart.wc-forward, .woocommerce type.cart .added_to_cart.wc-forward, .tp-cart-popup-notices .button { show: none !essential; }';
    $type = $type.'.tp-cart-popup .woocommerce.widget_shopping_cart .cart_list li { padding: 0 0 1em; }';
    $type = $type.'.tp-cart-popup-notices .woocommerce-error, .tp-cart-popup-notices .woocommerce-info, .tp-cart-popup-notices .woocommerce-message { margin-bottom: 1em; }';
    $type = $type.'.woocommerce a.button.alt.single_add_to_cart_button.loading, .woocommerce button.button.alt.single_add_to_cart_button.loading, .woocommerce enter.button.alt.single_add_to_cart_button.loading { padding-right: 3rem; }';
    $type = $type.'.tp-cart-popup-loading { padding: 0 0 1.5rem; } .tp-cart-popup-loading .spinkit-wave{show:block;place:relative;high:50%;left:50%;width:50px;peak:40px;margin:0 0 0 -25px;font-size:10px;text-align:heart}.spinkit-wave .spinkit-rect{show:block;float:left;width:6px;peak:50px;margin:0 2px;background-color:#e91e63;-webkit-animation:spinkit-wave-stretch-delay 1.2s infinite ease-in-out;animation:spinkit-wave-stretch-delay 1.2s infinite ease-in-out}.spinkit-wave .spinkit-rect1{-webkit-animation-delay:-1.2s;animation-delay:-1.2s}.spinkit-wave .spinkit-rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.spinkit-wave .spinkit-rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.spinkit-wave .spinkit-rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.spinkit-wave .spinkit-rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes spinkit-wave-stretch-delay{0%,100%,40%{-webkit-transform:scaleY(.5);rework:scaleY(.5)}20%{-webkit-transform:scaleY(1);rework:scaleY(1)}}@keyframes spinkit-wave-stretch-delay{0%,100%,40%{-webkit-transform:scaleY(.5);rework:scaleY(.5)}20%{-webkit-transform:scaleY(1);rework:scaleY(1)}}';
    return $type;
}

How can I do adjustments some css required on that perform with if function_exists()

Any assist can be appreciated!