Ich sehe in meinem FireBug CSS-Fenster, dass style.css? Version 4.7 wird geladen vonstyle.css Laden, aber nicht Rendern Stile auf Seite in WordPress
localhost/bootstrap2wordpress/wp-content/themes/bootstrap2wordpress/
ich anstelle von Inline-Stylesheet-Link verwendet Einreihen. Versuchte das auch, aber es hat auch nicht funktioniert. Problem sind die Styles aus der style.css, Hauptstile Stylesheet werden nicht auf meine Seite angewendet. Das Element der Navigationsleiste hat immer noch ein Aufzählungszeichen, und es ist nicht die richtige Schriftart oder Farbe.
Hier ist mein enqueue Code:
function bootstrap2wordpress_scripts()
{
wp_enqueue_style('bootstrap2wordpress-style', get_stylesheet_uri());
wp_enqueue_script('bootstrap2wordpress-navigation', get_template_directory_uri()
.
'/js/navigation.js', array(), '20151215', true);
wp_enqueue_script('bootstrap2wordpress-skip-link-focus-fix', get_template_directory_uri()
.
'/js/skip-link-focus-fix.js', array(), '20151215', true);
if (is_singular() && comments_open() && get_option('thread_comments'))
{
wp_enqueue_script('comment-reply');
}
}
add_action('wp_enqueue_scripts', 'bootstrap2wordpress_scripts');
Haben Sie überprüft, ob Ihre Regel überschrieben wird? –