Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Same Menu On Every Page


Mytsaw
 Share

Recommended Posts

![](https://dl.dropboxusercontent.com/u/201949762/44444444444444.JPG)

i want to add this menu to be the same to every page without need to change it on every page if i want to add or remove something

> <
> div
> class
> =
> "top-menu"
> >
>
>         <
> a
> href
> =
> "index.html"
> class
> =
> "top-menu-link"
> >
> Homea
> >
>
>         <
> a
> href
> =
> "naruto.html"
> class
> =
> "top-menu-link"
> >
> Narutoa
> >
>
>         <
> a
> href
> =
> "Yugioh.html"
> class
> =
> "top-menu-link"
> >
> Yugioha
> >
>
>         <
> a
> href
> =
> "#"
> class
> =
> "top-menu-link"
> >
> 4Story IWa
> >
>
>         <
> a
> href
> =
> "#"
> class
> =
> "top-menu-link"
> >
> a
> >
>
>         <
> a
> href
> =
> "#"
> class
> =
> "top-menu-link"
> >
> Forum a
> >
>
> div
> >

this is the code that it use (i wan't to do it wouth php if it's possible , without need to change my files from ".html")
Link to comment
Share on other sites

use include function. for php.

Ohh, but yea, you dont need to change ut *.html, just add this code in menu place and load menu from other file.

Make Menu.php and write in there this:

```

[Home](index.html)
[Naruto](naruto.html)
[Yugioh](Yugioh.html)
[4Story IW](#)
[](#)
[Forum](#)

```
and add that include menu where u want ur menu.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...