From 4ba2d65c49a80bc37e32a6f136b2f3f33aca5fd7 Mon Sep 17 00:00:00 2001 From: Robert DeVore Date: Wed, 13 Nov 2024 03:54:12 -0500 Subject: [PATCH] :ok_hand: IMPROVE: Updated My Account tab icon --- admin/clwc-woocommerce-account-tab.php | 2 +- public/css/clwc-public.css | 13 +++++++++++++ public/css/clwc-public.min.css | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/admin/clwc-woocommerce-account-tab.php b/admin/clwc-woocommerce-account-tab.php index c80d5ae..cb66f9b 100644 --- a/admin/clwc-woocommerce-account-tab.php +++ b/admin/clwc-woocommerce-account-tab.php @@ -60,7 +60,7 @@ function clwc_my_account_menu_items( $items ) { // Remove the customer-logout menu item. unset( $items['customer-logout'] ); // Insert the customer-loyalty endpoint. - $items['customer-loyalty'] = apply_filters( 'clwc_my_account_menu_item_title', esc_attr__( 'Loyalty & Rewards', 'customer-loyalty-for-woocommerce' ) ); + $items['customer-loyalty'] = apply_filters( 'clwc_my_account_menu_item_title', esc_attr__( 'Rewards', 'customer-loyalty-for-woocommerce' ) ); // Insert back the customer-logout item. $items['customer-logout'] = $logout; diff --git a/public/css/clwc-public.css b/public/css/clwc-public.css index fb17bd4..64f5d60 100644 --- a/public/css/clwc-public.css +++ b/public/css/clwc-public.css @@ -51,3 +51,16 @@ h4.clwc-loyalty-points, h4.clwc-rewards-card { margin-top: 0; } + +/* Font Awesome 5 Money Icon */ +body .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-loyalty a::before { + content: "\f0d6"; + font-family: "Font Awesome 5 Free"; + font-weight: 900; +} + +/* Dashicon Money Icon (fallback if Font Awesome isn't loaded) */ +body:not([class*="theme-storefront"]) .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-loyalty a::before { + content: "\f18e"; + font-family: "Dashicons"; +} diff --git a/public/css/clwc-public.min.css b/public/css/clwc-public.min.css index 34954a8..dd48c99 100644 --- a/public/css/clwc-public.min.css +++ b/public/css/clwc-public.min.css @@ -1 +1 @@ -div.clwc-rewards-card{text-align:center}table.clwc-dashboard{border:1px solid #ddd;margin-bottom:24px}table.clwc-dashboard thead{background:#f1f1f1;font-weight:700}table.clwc-dashboard tbody{font-size:14px}table.clwc-dashboard tr{border-bottom:1px solid #f1f1f1}table.clwc-dashboard tr:last-child{border-bottom:0}table.clwc-dashboard td{padding:10px}table.clwc-dashboard tbody td:last-child{text-align:right}table.clwc-dashboard tbody td.clwc-no-coupons:last-child{text-align:left}table.clwc-dashboard tbody td.clwc-inactive-coupon{color:#ddd;text-decoration:line-through}h4.clwc-loyalty-points,h4.clwc-rewards-card{margin-top:0} \ No newline at end of file +div.clwc-rewards-card{text-align:center}table.clwc-dashboard{border:1px solid #ddd;margin-bottom:24px}table.clwc-dashboard thead{background:#f1f1f1;font-weight:700}table.clwc-dashboard tbody{font-size:14px}table.clwc-dashboard tr{border-bottom:1px solid #f1f1f1}table.clwc-dashboard tr:last-child{border-bottom:0}table.clwc-dashboard td{padding:10px}table.clwc-dashboard tbody td:last-child{text-align:right}table.clwc-dashboard tbody td.clwc-no-coupons:last-child{text-align:left}table.clwc-dashboard tbody td.clwc-inactive-coupon{color:#ddd;text-decoration:line-through}h4.clwc-loyalty-points,h4.clwc-rewards-card{margin-top:0}body .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-loyalty a::before{content:"\f0d6";font-family:"Font Awesome 5 Free";font-weight:900}body:not([class*=theme-storefront]) .woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--customer-loyalty a::before{content:"\f18e";font-family:Dashicons} \ No newline at end of file