lunasmom
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by lunasmom
-
-
My sidebar is currently just HTML and CSS. It looks something like this:<div id="sidebar-a"> <p class="sideHEAD"><u>Head</u></p> <p class="sideHEAD"><a class="side" href="/directory/target.html">Category</a></p> <p class="sideTEXTINDENT"><a class="side" href="/directory/target2.html">Subcategory</a></p></div>If I just add PHP tags to it, like so:<?php<div id="sidebar-a"> <p class="sideHEAD"><u>Head</u></p> <p class="sideHEAD"><a class="side" href="/directory/target.html">Category</a></p> <p class="sideTEXTINDENT"><a class="side" href="/directory/target2.html">Subcategory</a></p></div>?>nothing happens (perhaps rightly so). What piece of this puzzle am I missing? Is there something I need to convert to PHP? Will the include tag read a plain HTML file?Thanks!MelissaTry using PHP. Save the code to a file called "Sidebar.php"And then in every page that uses the sidebar, put this code where you want the sidebar. <? include("sidebar.php"); ?> -
I'm trying to figure out the best way to handle this, I'm hoping for advice. I have a sidebar that is the same in about 50 pages of html content. I don't want to have to modify 50 files when this sidebar changes, I'd like to somehow insert a link in those html files telling them where to find the updated sidebar. I cannot for the life of me figure out how to look that up. Is it a CSS function? PHP?If someone could point me in the right direction, that would be great. Thanks!
static sidebar in multiple pages
in General
Posted