-
He,
Working on Bizznis.
How do I load style.css after bootstrap.css? Now bootstrap.css is always loaded and checked as last and I cannot make easy changes in style.css with the buttons.
Otherwise I get a lot of !important tags.
See here: http://burendaghouten.nl
You can control the position of your main style sheet by adding this to your child theme’s functions.php file:
remove_action( 'get_header', 'bizznis_load_stylesheet' );
add_action( 'get_header', 'custom_load_stylesheet' );
function custom_load_stylesheet() {
add_action( 'wp_enqueue_scripts', 'bizznis_enqueue_main_stylesheet', 15 );
}Change the number 15 to whatever number, 10 is the default.
And how do I do this in BizzStore theme?
The bizznis stuff doesn’t work here.
Greetings,
Jonathan
Add this to custom_functions.php for Bizz Store:
add_action( 'wp_enqueue_scripts', 'custom1_theme_head_styles' );
function custom1_theme_head_styles() {
wp_dequeue_style('main_stylesheet');
}
add_action( 'wp_enqueue_scripts', 'custom2_theme_head_styles', 15 );
function custom2_theme_head_styles() {
wp_enqueue_style('main_stylesheet');
}
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.