Add class active to the current open page
- or -
Post a project like this3703
£20(approx. $25)
- Posted:
- Proposals: 6
- Remote
- #412916
- Completed
Description
Experience Level: Entry
General information for the website: Website
Description of requirements/features: Using PHP add class of .active to the current opened page (this should work for all pages no matter where they are placed i.e. root or sub folders etc..)
I have the following HTML menu:
Home
About
Gallery
404
Contact
And I want someone to create something with PHP that I can place on the top of the menu and NOT inside it like the following case:
<a href="index"Home
As everything has to be dynamically, I don't need to go in and change everything manually every time I add new page, as I could do with the example just above this paragraph.
Extra notes:
Description of requirements/features: Using PHP add class of .active to the current opened page (this should work for all pages no matter where they are placed i.e. root or sub folders etc..)
I have the following HTML menu:
Home
About
Gallery
404
Contact
And I want someone to create something with PHP that I can place on the top of the menu and NOT inside it like the following case:
<a href="index"Home
As everything has to be dynamically, I don't need to go in and change everything manually every time I add new page, as I could do with the example just above this paragraph.
Extra notes:
DELETE ME D.
100% (3)Projects Completed
5
Freelancers worked with
4
Projects awarded
30%
Last project
15 Feb 2014
Tanzania, United Republic of
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies