Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

navigation bar

Featured Replies

hi

I have a site that is currently using a vertical list of links to allow users to navigate through the site. This is written inside the HTML for each page.

The font size, colour of these hyperlinks and other page formatting is controlled by a CSS file.

The problem is that the site has around 150 pages and as it develops people are looking for changes in the navigation bar. So i have to go through all 150 pages to make any changes to links etc.

I don't want to change the appearnace of the navigation area, but is there an easier way of making these changes?

Can i create a CSS file with all the links in it and then make a call for it in HTML code for each page to insert into the page?

Hi

 

What do you mean exactly by

The problem is that the site has around 150 pages and as it develops people are looking for changes in the navigation bar. So i have to go through all 150 pages to make any changes to links etc.

 

 

If I understand correctly, did you make a navigation menu and have this menu and its code on each and every one of your pages?

Yes, PHP includes are the way to go. If you don't know PHP don't worry its really easy and not scary at all. Do a bit of research on the web and you're good to go!

 

This is also good for footers, headers and any repeated sections on sites. If it requires something specific for the page then I set a variable in the HTML and call it in the PHP code.

  • Author

Hi

 

What do you mean exactly by

 

 

If I understand correctly, did you make a navigation menu and have this menu and its code on each and every one of your pages?

 

exactly - maybe not the cleverest way but it was an easy 'copy and paste' job but now it's gone too far.

  • Author

Yes, PHP includes are the way to go. If you don't know PHP don't worry its really easy and not scary at all. Do a bit of research on the web and you're good to go!

 

This is also good for footers, headers and any repeated sections on sites. If it requires something specific for the page then I set a variable in the HTML and call it in the PHP code.

 

 

i'll give this a go

thanks

  • Author

Yes, PHP includes are the way to go. If you don't know PHP don't worry its really easy and not scary at all. Do a bit of research on the web and you're good to go!

 

This is also good for footers, headers and any repeated sections on sites. If it requires something specific for the page then I set a variable in the HTML and call it in the PHP code.

i'll give this a go

thanks

Ok

 

If you want to do it using PHP maybe this link will help you:

http://www.webdesignerforum.co.uk/topic/33594-how-to-add-logo-on-top-of-my-site/page__p__216773entry216773

 

This was my question when I was trying to add a logo image on all my pages and someone gave me this answer.

 

 

Most people here know more than me, but I would like to make a suggestion:

 

Why not use frames to do what you want?

You can see how to do this simply here: http://www.w3schools.com/html/html_frames.asp

and there is an example here: http://www.w3schools.com/html/tryit.asp?filename=tryhtml_frame_cols

 

Someone who knows better than me can jump in and say their opinion. I believe the method with frames is far more simple.

 

[To explain in case you don't know with frames you can keep a part of your site as the menu and everything will open in the rest of the space]

I just want to add that php includes really are easy. I knew nothing about php and worked it out after reading about it on the stevedawson website :)

After making a lot of research, I found out that frames are actually not good to use, for various reasons.

 

I also searched for alternatives to frames for making a navigation menu, and I found that the best alternative is the PHP that the others have suggested.

So I guess PHP is the way for us to go.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.