Jump to content
Killersites Forums

Static Banners And Sidebars


nedronav
 Share

Recommended Posts

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...