Adding a new CSS file to a custom WordPress Theme

If you want additional css files in your custom wordpress theme you can use the following.

  1. Create a directory called css in your /wp-content/themes/themename/ directory
  2. Upload the css files
  3. Add this line to header.php

[sourcecode]<link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri() ?>/css/custom-css-file.css" />[/sourcecode]

Be the first to comment

Leave a Reply

Your email address will not be published.


*


This site uses Akismet to reduce spam. Learn how your comment data is processed.