updated my account styles
This commit is contained in:
parent
e37f9dde3e
commit
c62015a5fa
36
css/federated-my-account-sidebar.css
Normal file
36
css/federated-my-account-sidebar.css
Normal 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;
|
||||||
|
}
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
@ -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' );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user