Posted By

sridhar on 07/31/11


Tagged

css enqueue


Versions (?)

Enqueue CSS


 / Published in: PHP
 

  1. // Example 1
  2.  
  3. if ( !is_admin() ) {
  4. wp_register_style(
  5. 'my-style',
  6. 'http://altuit.on-rev.com/swg/swgwebold/about.css',
  7. false,
  8. 0.1
  9. );
  10. wp_enqueue_style( 'my-style' );
  11. }
  12.  
  13. // Example 2
  14.  
  15. <?php
  16. if ( !is_admin() ) {
  17. wp_register_style(
  18. 'my-style',
  19. get_bloginfo( 'stylesheet_directory' ) . '/css/site.css',
  20. false,
  21. 0.1
  22. );
  23. wp_enqueue_style( 'my-style' );
  24. }?>

Report this snippet  

You need to login to post a comment.