From ddf16c12977085a9f54a9dc5de86ef9bda100c4f Mon Sep 17 00:00:00 2001 From: Ross Trottier Date: Wed, 31 Jul 2024 12:32:49 -0600 Subject: [PATCH] full product page width --- assets/css/st-product.css | 3 +++ functions.php | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 assets/css/st-product.css diff --git a/assets/css/st-product.css b/assets/css/st-product.css new file mode 100644 index 0000000..2e250cf --- /dev/null +++ b/assets/css/st-product.css @@ -0,0 +1,3 @@ +.content-area { + width: 100% !important; +} \ No newline at end of file diff --git a/functions.php b/functions.php index 00e74c5..7fa31e8 100644 --- a/functions.php +++ b/functions.php @@ -18,4 +18,13 @@ add_action('wp_enqueue_scripts', 'slowtwitch_register_styles_scripts'); function slowtwitch_register_styles_scripts() { wp_enqueue_style( 'roboto font', 'https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap' ); +} + +add_action( 'get_header', 'bbloomer_remove_storefront_sidebar' ); + +function bbloomer_remove_storefront_sidebar() { + if ( is_product() ) { + remove_action( 'storefront_sidebar', 'storefront_get_sidebar', 10 ); + wp_enqueue_style( 'grand-sunrise-style', get_theme_file_uri('/assets/css/st-product.css')); + } } \ No newline at end of file