We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3953
    • 28 Posts
    I need help. I have wasted hours trying to figure this one simple thing out today: huh

    How can I, using Wayfinder 2, specify that the current page’s link (or li / row) needs to be formatted with my id=’"current" class defined in the site’s CSS?

    I don’t understand the chunk documentation.

    Thanks!

    The site I’m working on is http://www.brianpedigo.com
      • 5091
      • 332 Posts
      chinesedream Reply #2, 19 years ago
      Hi Brian,

      Wayfinder uses ’active’ for current page.

      All you need to do is add a ’active’.

      you have:
      #nav ul li a:active {color: #333; }
      #nav ul li#current ( background: url(nav-current.jpg) no-repeat center bottom}

      change it to:

      #nav ul li.active a {color: #333; background: url(nav-current.jpg) no-repeat center bottom}

      and remove the #nav ul li#current in your css and associated tag in the html markup.
        • 29181
        • 480 Posts
        &hereClass=`current`


        in your Wf snippet call could be an option too.
          Adrian Lawley: www.adrianlawley.com
          • 3953
          • 28 Posts
          I tried
          &hereClass=`current`
          , and that didn’t work. Have any ideas why?

          edit: I need to get better at CSS -- I just figured out that id != class, and that was the reason hereClass wasn’t working. I need to make my CSS work with classes, and not id’s.

          Thanks to you both for your responses.
            • 3953
            • 28 Posts
            You rock, a little of this, and everything is working:

            #nav ul li.active {	
            	background: url(nav-current.jpg) no-repeat center bottom;		
            }
            #nav ul li.active a {
            	color: #333;
            }
            
            

            Quote from: chinesedream at Sep 11, 2007, 06:53 PM

            Hi Brian,

            Wayfinder uses ’active’ for current page.

            All you need to do is add a ’active’.

            you have:
            #nav ul li a:active {color: #333; }
            #nav ul li#current ( background: url(nav-current.jpg) no-repeat center bottom}

            change it to:

            #nav ul li.active a {color: #333; background: url(nav-current.jpg) no-repeat center bottom}

            and remove the #nav ul li#current in your css and associated tag in the html markup.