Connected bootstrap through header.php.
On the main page everything works fine.
Created another page, neither the bootstrap nor the connected fonts work there.
The question is: because of what this can happen and how to solve?
In Wordpress, all styles and scripts should be connected via functions.php. To connect the bootstrap correctly, it is enough to upload bootstrap.css and bootstrap.js via ftp to the appropriate folders, and add the following lines to functions.php:
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array( ), false, 'all' ); wp_enqueue_script('jquery'); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/js/bootstrap.js', array( ), false, 'all' ); Source: https://ru.stackoverflow.com/questions/580650/
All Articles
wp_enqueue_style, but throughwp_enqueue_style- mihdan