[Resolved] active link color

Home Forums Support [Resolved] active link color

Home Forums Support active link color

  • This topic has 3 replies, 2 voices, and was last updated 4 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1236318
    johnaps

    Hello! I am trying to figure out how to make a link on my table of contents widget (on the left sidebar), to become black when i click it and stay that way when i am on corresponding section of the link…
    I tried the pseudo-class (active) on the link of that element’s class but didnt stick..
    Is what i am asking for, a css thing? Or maybe javascript?

    Thank you in advance for any input!

    #1236649
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    Typically, you would do this:

    #left-sidebar.sidebar .widget .lwptoc_item a:active, 
    #left-sidebar.sidebar .widget .lwptoc_item a:focus {
        color: black;
    }

    However, something seems to be removing focus once the anchor reaches its destination. It’s likely something built into the TOC javascript, unfortunately.

    #1236696
    johnaps

    Thank you Tom! Will check it out!

    #1237557
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.