Posted By

wpbedouine on 10/14/11


Tagged

wordpress-basics


Versions (?)

WordPress Stylesheet url


 / Published in: PHP
 

  1. <?php bloginfo('stylesheet_url'); ?>
  2.  
  3. // replaces the style.css in
  4.  
  5. <link href="style.css" rel="stylesheet" type="text/css" />
  6.  
  7. // which results in
  8.  
  9. <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css" />
  10.  
  11. // and which wordpress then processes to generate something like
  12.  
  13. <link href="http://www.wpbedouine.com/training-wheels/wp-content/themes/training-wheels-0.1/style.css" rel="stylesheet" type="text/css"/>

Report this snippet  

You need to login to post a comment.