Skip to content

Commit

Permalink
👌 IMPROVE: Updated My Account tab icon
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdevore committed Nov 13, 2024
1 parent 9e55316 commit 4ba2d65
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/clwc-woocommerce-account-tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
13 changes: 13 additions & 0 deletions public/css/clwc-public.css
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
2 changes: 1 addition & 1 deletion public/css/clwc-public.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ba2d65

Please sign in to comment.