nedronav Posted September 30, 2013 Report Share Posted September 30, 2013 Hi, I'm under pressure to get a site set up before I'm fully trained in building it. I have a moderate understanding of html, a basic understanding of php, and am in the midst of learning Dreamweaver. The problem I'm running into is that the site will have lots of pages, but I need the banner and sidebar to be the same for every page. Banner/sidebar content will need to be changed frequently. To avoid having to update dozens of pages separately each time, I'd like all my pages to pull the data for their banner/sidebar from one place. If anyone can tell me how to do this, I'd really appreciate it. Thanks Quote Link to comment Share on other sites More sharing options...
Andrea Posted September 30, 2013 Report Share Posted September 30, 2013 You can do that with PHP includes. Here is a video tutorial: http://www.killerphp.com/videos/02_php_includes/02_php_includes.html Quote Link to comment Share on other sites More sharing options...
pvader Posted September 30, 2013 Report Share Posted September 30, 2013 Did you create a template page? Try something like this... <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> </head> <body> <div id="container"> ...Write some page content here... </div> <div id="sidebar"> <?php include_once"ulr_to_page_static_sidebar.html"; ?> </div> </body> </html> Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.