function theme_whatsapp_color_override() { $css = " :root { --v17-red: #25D366 !important; --v17-red-hover: #046307 !important; --v17-red-dark: #046307 !important; --v17-red-alt: #25D366 !important; --color-primary: #25D366 !important; --color-primary-hover: #046307 !important; --wd-primary-color: #25D366 !important; --wd-add-btn-color: #25D366 !important; --wd-add-btn-hover-color: #046307 !important; --wd-button-color: #25D366 !important; --wd-button-hover-color: #046307 !important; --e-global-color-primary: #25D366 !important; --e-global-color-accent: #25D366 !important; --e-global-color-button: #25D366 !important; } .wd-btn-primary, .woodmart-btn, .woodmart-btn-primary, .btn-color-primary, .button, button[type='submit'], input[type='submit'], .wd-button, .wd-action-btn, .whb-cart-button, .wd-header-btn { background-color: #25D366 !important; background: linear-gradient(135deg, #25D366, #046307) !important; border-color: #25D366 !important; color: #ffffff !important; } .wd-btn-primary:hover, .woodmart-btn:hover, .woodmart-btn-primary:hover, .button:hover, button[type='submit']:hover, input[type='submit']:hover, .wd-button:hover, .wd-action-btn:hover { background: linear-gradient(135deg, #046307, #25D366) !important; border-color: #046307 !important; color: #ffffff !important; } .add_to_cart_button, .single_add_to_cart_button, .woocommerce a.button.add_to_cart_button, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce a.button.alt { background: linear-gradient(135deg, #25D366, #046307) !important; background-color: #25D366 !important; border-color: #25D366 !important; color: #ffffff !important; } .add_to_cart_button:hover, .single_add_to_cart_button:hover, .woocommerce a.button.add_to_cart_button:hover, .woocommerce button.button.alt:hover { background: linear-gradient(135deg, #046307, #25D366) !important; border-color: #046307 !important; } .wd-label-sale, .woodmart-label-sale, .onsale, .woocommerce span.onsale, .wd-product-label, .wd-label { background-color: #25D366 !important; color: #ffffff !important; } .woocommerce .price ins, .woocommerce .price > .amount, .wd-product-grid .price .amount, ins .amount, .price .amount { color: #25D366 !important; } .wd-swatch.selected, .wd-swatch:hover, .woodmart-swatch.selected, .woodmart-swatch:hover { border-color: #25D366 !important; outline-color: #25D366 !important; } .woocommerce #payment #place_order, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button { background: linear-gradient(135deg, #25D366, #046307) !important; background-color: #25D366 !important; border-color: #25D366 !important; color: #ffffff !important; } .woocommerce #payment #place_order:hover, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: linear-gradient(135deg, #046307, #25D366) !important; } .elementor-button, .elementor-button-wrapper .elementor-button, .elementor-widget-button .elementor-button, a.elementor-button, button.elementor-button { background: linear-gradient(135deg, #25D366, #046307) !important; border-color: #25D366 !important; color: #ffffff !important; } .elementor-button:hover, .elementor-widget-button .elementor-button:hover { background: linear-gradient(135deg, #046307, #25D366) !important; border-color: #046307 !important; } .elementor-form .elementor-button, .e-form__buttons .elementor-button { background: linear-gradient(135deg, #25D366, #046307) !important; border-color: #25D366 !important; color: #ffffff !important; } .elementor-field:focus, .elementor-field-textual:focus { border-color: #25D366 !important; outline-color: #25D366 !important; box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25) !important; } .elementor-nav-menu .elementor-item:hover, .elementor-nav-menu .elementor-item.elementor-item-active { color: #25D366 !important; border-bottom-color: #25D366 !important; } .elementor-section[style*='background-color:#ef1649'], .elementor-section[style*='background-color:#EF1649'], .elementor-section[style*='background-color:#bc030a'], .elementor-section[style*='background-color:#a01717'], .elementor-column[style*='background-color:#ef1649'], .elementor-column[style*='background-color:#bc030a'], .elementor-column[style*='background-color:#a01717'], .e-con[style*='background-color:#ef1649'], .e-con[style*='background-color:#EF1649'], .e-con[style*='background-color:#bc030a'], .e-con[style*='background-color:#a01717'] { background-color: #25D366 !important; background: linear-gradient(135deg, #25D366, #046307) !important; } [style*='background-color:#ef1649'], [style*='background-color: #ef1649'], [style*='background-color:#EF1649'], [style*='background-color: #EF1649'], [style*='background-color:#bc030a'], [style*='background-color: #bc030a'], [style*='background-color:#BC030A'], [style*='background-color: #BC030A'], [style*='background-color:#a01717'], [style*='background-color: #a01717'], [style*='background-color:#A01717'], [style*='background-color: #A01717'] { background-color: #25D366 !important; } [style*='background:#ef1649'], [style*='background: #ef1649'], [style*='background:#EF1649'], [style*='background: #EF1649'], [style*='background:#bc030a'], [style*='background: #bc030a'], [style*='background:#BC030A'], [style*='background: #BC030A'], [style*='background:#a01717'], [style*='background: #a01717'], [style*='background:#A01717'], [style*='background: #A01717'], [style*='background:linear-gradient'][style*='#ef1649'], [style*='background:linear-gradient'][style*='#EF1649'], [style*='background:linear-gradient'][style*='#bc030a'], [style*='background:linear-gradient'][style*='#a01717'], [style*='background: linear-gradient'][style*='#ef1649'], [style*='background: linear-gradient'][style*='#EF1649'], [style*='background: linear-gradient'][style*='#bc030a'], [style*='background: linear-gradient'][style*='#a01717'] { background: linear-gradient(135deg, #25D366, #046307) !important; } [style*='color:#ef1649'], [style*='color: #ef1649'], [style*='color:#EF1649'], [style*='color: #EF1649'], [style*='color:#bc030a'], [style*='color: #bc030a'], [style*='color:#BC030A'], [style*='color: #BC030A'], [style*='color:#a01717'], [style*='color: #a01717'], [style*='color:#A01717'], [style*='color: #A01717'] { color: #25D366 !important; } [style*='border-color:#ef1649'], [style*='border-color: #ef1649'], [style*='border-color:#EF1649'], [style*='border-color: #EF1649'], [style*='border-color:#bc030a'], [style*='border-color: #bc030a'], [style*='border-color:#BC030A'], [style*='border-color: #BC030A'], [style*='border-color:#a01717'], [style*='border-color: #a01717'], [style*='border-color:#A01717'], [style*='border-color: #A01717'] { border-color: #25D366 !important; } [fill='#ef1649'], [fill='#EF1649'], [fill='#bc030a'], [fill='#BC030A'], [fill='#a01717'], [fill='#A01717'] { fill: #25D366 !important; } [stroke='#ef1649'], [stroke='#EF1649'], [stroke='#bc030a'], [stroke='#BC030A'], [stroke='#a01717'], [stroke='#A01717'] { stroke: #25D366 !important; } "; wp_add_inline_style( 'woodmart-style', $css ); } add_action( 'wp_enqueue_scripts', 'theme_whatsapp_color_override', 9999 );