Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Feedback
  3. CSS classes for links (paragraphs and menu)

CSS classes for links (paragraphs and menu)

Scheduled Pinned Locked Moved Feedback
12 Posts 2 Posters 2.5k 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.
  • edgrbnzE
    edgrbnzE
    edgrbnz
    wrote on last edited by
    #3

    I tryed that CSS already, works fine.
    Except for the menu items, they just behave as they did before.

    ✦ ✦ ✦

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

      Dear @edgrbnz

      for the menu try this:

      .menu-item span:hover {
          color: yellow !important;
      }
      

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • edgrbnzE
        edgrbnzE
        edgrbnz
        wrote on last edited by edgrbnz
        #5

        Looks like I'm slowly gettign there.
        Problem is I don’t want the active menu-Item to lose it’s border-bottom when hovered. Is there any way to also target the active state via CSS to do so?

        I tryed to control that via current-menu-item but no success. Here’s the CSS I’m using so far:

        .text a{
            color: #eee;
            transition: ease-in-out 0.15s;
        }
        
        .text a:hover{
            color: #fff;
            text-shadow: 0 0 4px #fff;
            border-bottom: none;
            transition: ease-in-out 0.15s;
        }
        
        .menu-item span {
            color: #eee;
            transition: ease-in-out 0.15s;
        }
        
        .menu-item span:hover {
            color: #fff;
            text-shadow: 0 0 4px #fff;
            border-bottom: none;
            transition: ease-in-out 0.15s;
        }
        

        And also question #2 → Is there a way to fix that? I sent a link and password via chat.

        ✦ ✦ ✦

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

          Dear @edgrbnz
          if the menu point WORK would be a category it would not be a problem.

          Try this instead:

          .type-project .menu-item-302 span {
              color: yellow !important;
          }
          
          

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • edgrbnzE
            edgrbnzE
            edgrbnz
            wrote on last edited by
            #7

            Thanks Marius!

            Will try the CSS later on.

            Confused about this one:
            How can I make a category a page and use a thumbnail grid or similar there?

            ✦ ✦ ✦

            1 Reply Last reply
            0
            • edgrbnzE
              edgrbnzE
              edgrbnz
              wrote on last edited by edgrbnz
              #8

              Oh,…
              I wasn’t expecting to find another gridder inside the categories… that problem is solved now! Thank you for the hint @mariusjopen!!

              Now I'm just fiddeling with the css to get the underline / border-bottom to stay when a currently active menu point gets hovered. Just cannot get it to work.
              Let’s say the currently active page is work or any project in that category. So work will be underlined (because it’s active). As soon as it gets hovered the underline disappears although I want it to stay.

              I hope that makes any sense—but I think you can see what I'm trying to describe with the link and pass I sent you.
              This is the code I tryed to address this behaviour with:

              .menu-item span {
                  color: #eee;
                  transition: ease-in-out 0.12s;
              }
              
              .menu-item span:hover {
                  color: #fff;
                  text-shadow: 0 0 4px #fff;
                  border-bottom: none;
                  transition: ease-in-out 0.12s;
              }
              
              .current-menu-item span:hover {
                  color: #fff;
                  text-shadow: 0 0 4px #fff;
                  transition: ease-in-out 0.12s;
              }
              

              I think I’m just targeting the wrong class with the .current-menu-item. Any help is very much appreciated.

              ✦ ✦ ✦

              1 Reply Last reply
              0
              • edgrbnzE
                edgrbnzE
                edgrbnz
                wrote on last edited by
                #9

                Still need help with this.
                Is there a class to target the active hovered item?

                Any help is very much appreciated.

                ✦ ✦ ✦

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

                  Dear @edgrbnz

                  does this solve the issue?

                  .menu-item span:hover {
                      border-bottom: 2px solid brown !important;
                  }
                  
                  .current-menu-item span {
                      border-bottom: 2px solid brown !important;
                  }
                  
                  .current-menu-item span:hover {
                      border-bottom: 2px solid brown !important;
                  }
                  

                  Or did I not understand you right?

                  Best!

                  Marius

                  www.mariusjopen.world

                  1 Reply Last reply
                  1
                  • edgrbnzE
                    edgrbnzE
                    edgrbnz
                    wrote on last edited by
                    #11

                    I think the good ol’ !important; solved it!
                    Just for reference the code I am using right now:

                    /*custom link styles*/
                    
                    .text a{
                        color: #eee;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .text a:hover{
                        color: #fff;
                        text-shadow: 0 0 4px #fff;
                        border-bottom: none;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .caption a{
                        color: #eee;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .caption a:hover{
                        color: #fff;
                        text-shadow: 0 0 4px #fff;
                        border-bottom: none;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .menu-item span {
                        color: #eee;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .menu-item span:hover {
                        color: #fff;
                        text-shadow: 0 0 4px #fff;
                        border-bottom: none;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .current-menu-item span {
                        color: #eee;
                        border-bottom: 1.2px solid #eee !important;
                        transition: ease-in-out 0.12s;
                    }
                    
                    .current-menu-item span:hover {
                        color: #fff;
                        text-shadow: 0 0 4px #fff;
                        border-bottom: 1.2px solid #fff !important;
                        transition: ease-in-out 0.12s;
                    }
                    

                    Thank you @mariusjopen !

                    ✦ ✦ ✦

                    1 Reply Last reply
                    1
                    • mariusjopenM
                      mariusjopenM
                      mariusjopen
                      Global Moderator
                      wrote on last edited by
                      #12

                      Dear @edgrbnz
                      you are very welcome!

                      Best!

                      Marius

                      www.mariusjopen.world

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      Online Users
                      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