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
Post a Comment