highlighting the current page link

chess69

Joined: 2012-05-19
Posts: 16
Posted: Tue, 2012-05-29 18:57

hi

does anyone know how to have the link of the page the user is currently on highlighted on Gallery 3?

i just want the background color that appears when you roll over to just stay on indicating that this is the page the user is on, like you would on a site

thank you

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2012-05-29 22:00

Will need a much better user story as I don't have a clue what you are after if:
http://codex.gallery2.org/Gallery3:Modules:embedlinks
does not work.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Wed, 2012-05-30 14:10

thank you but that isnt what im after, if you take a quick look at http://www.galleryatnumbersix.com you'll see i styled each link to stay highlighted when the user is on that page but i cant get it to work for the ARTISTS section which is gallery3.

i want that link to do the same as the others.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2012-05-30 16:05

Add class="currentpage" to the ARTISTS link on what I'm assuming you did to page.html.php of the theme you are using.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Thu, 2012-05-31 17:37

I can get at and add the class to the other three links because they are HTML pages but the ARTISTS link is a php page. On page.html.php i dont know where to add that tag!

...this is probably blindingly obvious but i just cant figure it! :/

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2012-05-31 17:45

How is that generated? Are you using the menu links module?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Thu, 2012-05-31 17:55

i am using the menu links module for two links - ARTSISTS and CONTACT US (reason being is that the 'home' button for the gallery is called ARTISTS) and the other two links are in the php code of the page.html.php

that is for this page alone

the other three pages are made in html with css hence my problem, the others i built whereas the ARTSISTS page is built and customized using gallery3 through the php.

...get me?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2012-05-31 18:45

css:

<style>
  li a.g-menu-link[href="/gallery/"] {
    background: none repeat scroll 0 0 #E4EEFB;
  }
</style>

place this just above </body> in themes/your theme/views/page.html.php

-s

 
chess69

Joined: 2012-05-19
Posts: 16
Posted: Thu, 2012-05-31 19:02

You. Star!!!

thank you so much, very very much appreciate the help!! :)

 
CherylJoyW

Joined: 2012-08-19
Posts: 42
Posted: Fri, 2013-03-08 19:08

Just found this post. I too need to make the (Gallery/Portfolio) current page link display as the "a link " color and the rest of the menu be neutral
I entered the menu in the page.html.php file but am at a loss on how to do this.
When I use the custom css and enable the "a link "color which is a red, all the links in the menu are displayed as the "a link" color.
I have since changed that so it will be the grey.

What do I need to do to accomplish this.
A Module, js ???

http://www.lear-mahoney.com/gallery3/

Any help would be appreciated

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-03-08 20:22
<style>
  li a.g-menu-link[href*="/gallery3/"] {
    color: #E4EEFB;
  }
</style>

-s
________________________________
All New jQuery Minislideshow for G2/G3