updated my account styles

This commit is contained in:
Ross Trottier 2024-05-12 11:30:24 -06:00
parent e37f9dde3e
commit c62015a5fa
3 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,36 @@
.woocommerce-MyAccount-navigation {
font-size: 18px;
padding-top: 6rem;
}
.woocommerce-MyAccount-navigation>ul {
list-style: none !important;
}
.woocommerce-MyAccount-navigation-link {
margin-bottom: 30px;
}
.woocommerce-MyAccount-content {
padding-top: 6rem;
}
.woocommerce a {
color: black !important;
}
.woocommerce a:hover {
color: grey !important;
}
.woocommerce-MyAccount-content .py-24 {
padding-top: 0;
}
.woocommerce table.my_account_orders .button {
margin: 5px;
}
.woocommerce table.shop_table {
border-radius: 0 !important;
}

View File

@ -3,7 +3,7 @@
/** /**
* Plugin Name: Federated Computer E-Commerce * Plugin Name: Federated Computer E-Commerce
* Description: This plugin contains customizations for Federated Computer. * Description: This plugin contains customizations for Federated Computer.
* Version: 1.0.3 * Version: 1.0.4
*/ */

View File

@ -9,11 +9,13 @@
add_action('init', 'register_federated_my_account_styles'); add_action('init', 'register_federated_my_account_styles');
function register_federated_my_account_styles() { function register_federated_my_account_styles() {
wp_register_style( 'my-account', '/wp-content/plugins/fed-comp-customizations/css/federated-my-account.css' ); wp_register_style( 'my-account', '/wp-content/plugins/fed-comp-customizations/css/federated-my-account.css' );
wp_register_style( 'my-account-sidebar', '/wp-content/plugins/fed-comp-customizations/css/federated-my-account-sidebar.css' );
} }
add_action( 'wp_enqueue_scripts', 'conditionally_enqueue_federated_my_account_styles_scripts' ); add_action( 'wp_enqueue_scripts', 'conditionally_enqueue_federated_my_account_styles_scripts' );
function conditionally_enqueue_federated_my_account_styles_scripts() { function conditionally_enqueue_federated_my_account_styles_scripts() {
if ( is_page('my-account') ) { if ( is_page('my-account') ) {
wp_enqueue_style( 'my-account' ); wp_enqueue_style( 'my-account' );
wp_enqueue_style( 'my-account-sidebar' );
} }
} }