Best (official) way to link individual stylesheets to individual template pages
-
Hey guys! I’m building a theme with 5 pages (Contact, Portfolio, Services, etc.). I have built a custom template page for each of the pages, and I have a custom, individual stylesheet for each page too (‘portfolio.css’ for ‘portfolio.php’ and so on).
I’ve enqueued all the Stylesheets, but I’ve been doing
<link rel="stylesheet" href="<?php bloginfo('template_directory');?>/CSS/portfolio.css">
for each page, which I’ve heard is not the best way to do things.Once I’ve enqueued all the stylesheets into functions.php, how do I call an individual stylesheet in an individual page? Thanks for any help!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Best (official) way to link individual stylesheets to individual template pages’ is closed to new replies.