WordPress.org

Forums

Sticky Header by ThematoSoup
[resolved] Can't change style of a:active in sticky menu? (6 posts)

  1. dheijman
    Member
    Posted 1 year ago #

    Many many thanks for the plug-in!!

    I'd like to change the current page title in the sticky navigation such as the style of my normal navigation. When I add CSS:

    #thsp-sticky-header li a:active {
    	font-weight: 600 !important;
    }

    nothing changes. Anyone else had this issue / fixed it?

    webpage: http://www.jeannedebie.nl

    Thanks!

    https://wordpress.org/plugins/sticky-header/

  2. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Glad you like the plugin.

    The selector you have there changes font weight when link is active (being clicked), you can see this if you click and hold any link in navigation.

    I guess what you wanted to do was make text bold in current page, for that you can use following selector:

    #thsp-sticky-header li.current-menu-item a
  3. Slobodan Manic
    Member
    Plugin Author

    Posted 1 year ago #

    Let me know if this helps and if you find our plugin useful please take time to rate it, to make it easier for other people to discover it:

    http://wordpress.org/support/view/plugin-reviews/sticky-header

  4. dheijman
    Member
    Posted 1 year ago #

    It works perfectly, thanks :) I'll rank the plug-in!

  5. themadproducer
    Member
    Posted 1 year ago #

    Bold and underline seem to work, but I can't make the color change using:

    #thsp-sticky-header li.current-menu-item a{
    text-decoration: underline;
    color: red; !important;
    font-weight: 600 !important;
    }

    Is there a way?
    Thanks

    PS I also tried:
    color: #FF0000; !important;

  6. themadproducer
    Member
    Posted 1 year ago #

    SOLVED. Pilot error. Syntax.
    color: #FF0000 !important;
    Took out the extra semi-colon after the color code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Sticky Header by ThematoSoup
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic