Click here to Skip to main content
15,885,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want use layout for my site.
i have layout folder that into it ,i have header.php and footer.php
in this header call css file from css folder

CSS
<?php  	$root_dir=dirname(__DIR__);?>
    <link href="<?php echo $root_dir."design/css/bootstrap.min.css";?>" rel="stylesheet" type="text/css">
    <link href="design/css/blog-home.css" rel="stylesheet" type="text/css"> 


but this address not work :(
how can i fix theme?
Posted

If you wish to use header entries, you must declare the <head> entity. A php file can look just like an HTML file (i.e, have a body, too). Your link items are, at least as shown, just floating in a file. The file should include DOCTYPE and all.

Alternative: include the FILE via php. Make sure the <script> tags are appropriately supplied.
 
Share this answer
 
Use twig
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900