December 14th, 2015, 07:20 AM
Making a centrally controlled navbar
I know there is a way of doing this, but I don't remember how and can't seem to find an answer.
I know you can control the way it's set up through the CSS sheet. But, I want to control the content, add an item or take one away without having to edit every page on the site.
What kind of sheet do I use to do that?
December 15th, 2015, 12:55 AM
Using a server-side language (using PHP in this example):
There are other ways of doing this, but using a central menu file on your server is the easiest and lest-problematic way.
<?php require ('menu_file.php'); ?>
December 15th, 2015, 07:49 AM
I understand how you feel. If you really like code, then you should have no problem learning everything you can about it. I'm always learning new techniques and languages. Trust me, PHP include/require statements are some of the easiest functions to implement. Simply put the code for your navigation in a file called "navigation.php" and then include it in your index.php wherever you want it to appear.
<?php include("navigation.php"); ?>
Ok, I'll give it a shot. It can't hurt to learn it, I guess.