A
A
Artem Ponomarev2016-01-26 13:21:12
css
Artem Ponomarev, 2016-01-26 13:21:12

Pulled my Bootstrap layout on WordPress, but some styles don't work?

There is a custom design for such posts with news. 8176997a05bf4eeb9b83dae27dee2761.png
But pulling it on WordPress turns out like this! 57e8b7a662154096bf601002069abd96.png
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

1 answer(s)
I
Igor Pushkarsky, 2016-01-26
@RainMEN

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 question

Ask a Question

731 491 924 answers to any question