hansman Posted July 7, 2008 Share Posted July 7, 2008 Hello, i have made a full css template that i would like to use throughout my site. The name of it is template.php. I tried using include() and i cannot figure out how to place the content inside of a certain div tag. It will only permit me to enter content before and after the page's template. Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/113576-solved-using-a-template/ Share on other sites More sharing options...
gigas10 Posted July 7, 2008 Share Posted July 7, 2008 You said you made a full css template? Then why did you save it as a php file. Resave the file as a .css extension and use this code anywhere before the head tag ends. <link href="template.css" rel="stylesheet" type="text/css" /> Link to comment https://forums.phpfreaks.com/topic/113576-solved-using-a-template/#findComment-583568 Share on other sites More sharing options...
hansman Posted July 7, 2008 Author Share Posted July 7, 2008 well its css with links and information, i wish to have just the center area with changing text Link to comment https://forums.phpfreaks.com/topic/113576-solved-using-a-template/#findComment-583575 Share on other sites More sharing options...
DarkWater Posted July 7, 2008 Share Posted July 7, 2008 Make a header and a footer then just include those around your content. Link to comment https://forums.phpfreaks.com/topic/113576-solved-using-a-template/#findComment-583580 Share on other sites More sharing options...
wrathican Posted July 7, 2008 Share Posted July 7, 2008 if you were to do the header and footer includes around the content, how would you link to sub folders and directories? would you use the PHP_SELF? or something to the like? Link to comment https://forums.phpfreaks.com/topic/113576-solved-using-a-template/#findComment-583672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.