first
This commit is contained in:
46
wp-content/themes/simple-theme/functions/styles.php
Normal file
46
wp-content/themes/simple-theme/functions/styles.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
// add_action('admin_enqueue_scripts', function () {
|
||||
// // ?? Styles for WP Admin-panel
|
||||
// f_add_style('admin-style', 1);
|
||||
// });
|
||||
|
||||
// add_action('wp_enqueue_scripts', function () {
|
||||
// ?? Styles for Site (Header)
|
||||
// if (gV('critical') == true) f_add_style('critical', 1);
|
||||
// f_add_style('main', gV('dev'));
|
||||
// });
|
||||
|
||||
add_action('get_footer', function () {
|
||||
// ?? Styles for Site (Footer)
|
||||
// f_add_style('simplebar', 0);
|
||||
|
||||
// wp_enqueue_style('jquery-scrollbar', get_tUrl() . '/css/jquery.scrollbar.css', NULL, gV('ver'));
|
||||
// wp_enqueue_script('jquery-scrollbar', get_tUrl() . '/js/jquery.scrollbar.min.js', NULL, gV('ver'), true);
|
||||
});
|
||||
|
||||
add_action('wp_enqueue_scripts', function () {
|
||||
// wp_dequeue_style('wp-block-library'); // WordPress core
|
||||
wp_dequeue_style('wp-block-library-theme'); // WordPress core
|
||||
wp_dequeue_style('wc-block-style'); // WooCommerce
|
||||
wp_dequeue_style('storefront-gutenberg-blocks'); // Storefront theme
|
||||
}, 100);
|
||||
|
||||
add_action('wp_head', function () {
|
||||
if (is_admin_bar_showing()) :
|
||||
?>
|
||||
<style type="text/css">
|
||||
.site-navigation .header-content.dense {
|
||||
margin-top: 32px !important;
|
||||
}
|
||||
#wpadminbar a {
|
||||
color: #c3c4c7 !important;
|
||||
}
|
||||
</style>
|
||||
<?php endif;
|
||||
});
|
||||
// add_action('admin_head', 'override_admin_bar_css_function'); // on backend area
|
||||
|
||||
add_action('get_header', function () {
|
||||
remove_action('wp_head', '_admin_bar_bump_cb');
|
||||
});
|
Reference in New Issue
Block a user