WordPress Stylesheet url


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.