Answer the question
In order to leave comments, you need to log in
Pulled my Bootstrap layout on WordPress, but some styles don't work?
There is a custom design for such posts with news.
But pulling it on WordPress turns out like this!
I understand that WP styles overlap mine. The problem is that I typed on Bootstrap and it will not work to transfer the bootstrap style classes to a css file that can be changed.
Answer the question
In order to leave comments, you need to log in
Can be in style.css
or in function.php
function load_style_script(){
wp_enqueue_style('b_bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css');
wp_enqueue_style('b_font-awesome', 'https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css');
wp_enqueue_style('b_roboto-slab', 'https://fonts.googleapis.com/css?family=Roboto+Slab:400,300,700&subset=latin,cyrillic');
wp_enqueue_style('b_open-sans', 'https://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=latin,cyrillic');
wp_enqueue_style('b_main', get_template_directory_uri() . '/css/main.css');
wp_enqueue_script('b_jquery', get_template_directory_uri() . '/js/jquery.min.js', array(), '',true);
wp_enqueue_script('b_bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '',true);
wp_enqueue_script('b_common', get_template_directory_uri() . '/js/common.js', array(), '',true);
}
add_action('wp_enqueue_scripts','load_style_script');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question