Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. Bug Reports
  3. Underline for active menupoint won't change colour with custom CSS

Underline for active menupoint won't change colour with custom CSS

Scheduled Pinned Locked Moved Bug Reports
4 Posts 3 Posters 250 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alidarosie
    wrote on last edited by
    #1

    Hi Armin and Marius,

    I am working on a home page for a website where the menu text is white instead of black as it is on all other pages. I followed your instructions in Documentation 'CSS based on current page', but the underline for the active menu point is still showing as black, not white. I have tried several times to fix but nothing works.

    Here is the page: http://originalprojects.co.uk/category/now/ ...you will see Now is still underlined in black, but I want it to be white. I am using Chrome.

    This is the code I have in custom CSS:
    /* navigation /
    body.slug-now nav.primary a{
    color: white;
    }
    /
    navigation /
    body.slug-now nav.primary a{
    color: white;
    }
    /
    navigation mouseover /
    body.slug-now nav.primary a:hover{
    color: white;
    }
    /
    navigation mouseover underline color /
    body.slug-now nav.primary a:hover span{
    border-bottom-color: white;
    }
    /
    navigation transition */
    nav.primary a{
    transition: all 600ms ease;
    -moz-transition: 600ms ease;
    -o-transition: 600ms ease;
    -webkit-transition: all 600ms ease;
    }

    Could you please advise how to fix this?

    Thanks very much,
    Alida

    1 Reply Last reply
    0
    • mariusjopenM Offline
      mariusjopenM Offline
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @alidarosie

      try this:

      
      nav.laynav .current-menu-item>a span {
          border-bottom-color: white;
      }
      
      

      Best!
      Marius

      www.mariusjopen.world

      1 Reply Last reply
      1
      • A Offline
        A Offline
        alidarosie
        wrote on last edited by
        #3

        @mariusjopen said in Underline for active menupoint won't change colour with custom CSS:

        nav.laynav .current-menu-item>a span {
        border-bottom-color: white;
        }

        Thank you so much Marius, that is perfect! For anyone else with the same issue, I just had to add body.slug-page-title in front of this to point it to apply to a specific pages. All the best, Alida

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear @alidarosie

          Great to hear!

          All the best & thank you for using Lay Theme :)

          Best
          Richard

          1 Reply Last reply
          0
          • Y yanekblue referenced this topic on
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          šŸ’æ Email me here: šŸ’æ
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          arminunruhA
          arminunruh
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search