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. 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 1.7k 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.
  • mariusjopenM Offline
    mariusjopenM Offline
    mariusjopen
    Global Moderator
    wrote on last edited by
    #2

    Dear @edgrbnz

    you can try this:

    .text a:hover {
       color: red !Important;
    }
    

    Can you send us a link to your website?

    Best!

    Marius

    www.mariusjopen.world

    1 Reply Last reply
    0
    • edgrbnzE Offline
      edgrbnzE Offline
      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 Offline
        mariusjopenM Offline
        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 Offline
          edgrbnzE Offline
          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 Offline
            mariusjopenM Offline
            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 Offline
              edgrbnzE Offline
              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 Offline
                edgrbnzE Offline
                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 Offline
                  edgrbnzE Offline
                  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 Offline
                    mariusjopenM Offline
                    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 Offline
                      edgrbnzE Offline
                      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 Offline
                        mariusjopenM Offline
                        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
                        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
                        G
                        Glyph
                        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