slowtwitch-store/functions.php

30 lines
1.0 KiB
PHP
Raw Permalink Normal View History

2024-07-12 00:51:16 +00:00
<?php
add_action( 'wp_enqueue_scripts', 'twitchfront_enqueue_styles' );
function twitchfront_enqueue_styles() {
wp_enqueue_style(
'grand-sunrise-style',
get_stylesheet_uri()
);
}
2024-07-31 17:47:35 +00:00
function storefront_site_branding() {
echo '<a href="' . get_site_url( ) . '"><img class="st-masthead-logo" src="/wp-content/themes/twitchfront/assets/images/logotype-dark-blue.png" alt="Slowtwitch Logo" /></a>';
2024-07-31 18:03:15 +00:00
}
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' );
2024-07-31 18:32:49 +00:00
}
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'));
}
2024-07-31 17:47:35 +00:00
}