huisjames Posted November 27, 2010 Share Posted November 27, 2010 Hi, Is there a way to reuse header and footer for multiple new html/php pages in case I change the content of the header/footer in the future? Content include links to About Us, Press, Privacy, etc... I have the CSS styles saved in an external CSS stylesheet. But content may still change and I would hate to copy and paste repeatedly. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/219960-how-to-reuse-header-and-footer/ Share on other sites More sharing options...
trq Posted November 27, 2010 Share Posted November 27, 2010 You can use php includes or ssi for this. Nothing you can do with CSS though. Quote Link to comment https://forums.phpfreaks.com/topic/219960-how-to-reuse-header-and-footer/#findComment-1140180 Share on other sites More sharing options...
huisjames Posted November 27, 2010 Author Share Posted November 27, 2010 I haven't learned how to use includes or ssi yet. But I just found a handy feature in Dreamweaver that allows user to create templates and updates the pages that were created from the templates automatically. Thanks thrope. Quote Link to comment https://forums.phpfreaks.com/topic/219960-how-to-reuse-header-and-footer/#findComment-1140182 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.