Jump to content

linking single menu bar to multiple pages?


UrbanDweller

Recommended Posts

Hey Im always trying to remove code and cut corners to reduce work in the long run, soIim wondering how I could link my menu bar from say a template to ALL my php pages for my site so I don't have to write/change links on every page when I need to.

 

Thanks

Ok i found info on include thanks

 

Put this on the menubar.html

<!--#include virtual="path to file/include-file.html" -->

 

 

add this code to every page you want menu bar on

<?php
require($DOCUMENT_ROOT . "path to file/include-file.html");
?>

 

Just wont let me work from folder to folder, any method?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.