html - wp_enqueue_style Does Not Behave As Documented -



html - wp_enqueue_style Does Not Behave As Documented -

i have next written in driver:

add_action( 'wp_enqueue_scripts', 'add_css_file' ); function add_css_file() { // tried prior: // $path = abspath . "/wp-content/plugins/this_plugin/css/"; // wp_register_style( 'css_file', $path.'css_file.css' ); wp_register_style( 'css_file', 'http://subdomain.mysite.com/wp-content/plugins/this_plugin/css/css_file.css' ); wp_enqueue_style( 'css_file' ); }

the string "css_file" not appear in view source html , css rules defined therein not take effect.

have included wp_head() in <head> of page? wp_head() add together queued styles , scripts page.

html css wordpress wordpress-plugin wordpress-theming

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -