Bootstrap isn’t called into my WordPress theme

Put this code in functions.php file and check it. function theme_add_bootstrap() { wp_enqueue_style( ‘bootstrap-css’, get_template_directory_uri() . ‘/bootstrap/css/bootstrap.min.css’ ); wp_enqueue_style( ‘style-css’, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/bootstrap/js/bootstrap.min.js’, array( ‘jquery’ ), ‘3.0.0’, true ); } add_action( ‘wp_enqueue_scripts’, ‘theme_add_bootstrap’ );

How to save the Additional CSS in a CSS file and enqueue it

add_action(‘customize_register’, ‘theme_footer_customizer’); function theme_footer_customizer($wp_customize){ // Get upload directory $upload_dir = wp_get_upload_dir(); // Create style file path $style_file_path = sprintf( ‘%1$s/css’, untrailingslashit( $upload_dir[‘basedir’] ) ); // Create directories if they do not exist if( ! file_exists( $style_file_path ) ) { wp_mkdir_p( $style_file_path ); } // Sanitize contents ( probably needs to be sanitized better, maybe with … Read more

Theme layout for home page [closed]

To the extent that this question is WordPress-related, here’s what you need to know: Start with a file named index.php. Give that file the following markup: <?php get_header(); get_template_part( ‘loop’ ); get_sidebar(); get_footer(); ?> The get_header() template tag will include a file named header.php. The get_template_part( ‘loop’ ) template tag will include a file named … Read more