Site logo

[Support request] Shadow Sub Menu

Home Forums Support [Support request] Shadow Sub Menu

Home Forums Support Shadow Sub Menu

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2100930
    Sebastian

    Hi,

    I want a Shadow on my sub-menu. But only on Desktop, not on mobile. How to do this?

    Thanks!

    #2100998
    Fernando
    Customer Support

    Hi Sebastian,

    To do this, you would need custom CSS.

    For instance, you may try adding this:

    @media (min-width: 1025px){
        ul.sub-menu li a {
            text-shadow: 0 0 3px red;
        }
    
        ul.sub-menu li {
            box-shadow: 5px 5px rgba(122,25,107, .5);
        }
    }

    Kindly modify the values to your preference.

    Please refer to this link for assistance regarding adding CSS: https://docs.generatepress.com/article/adding-css/

    You may also refer to this link to learn more about shadows: https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow

    Hope this helps! 🙂

    #2102501
    Sebastian

    Hey,

    that does not work.

    Please look: haustierlino.de

    #2102534
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    .main-navigation ul ul {
        box-shadow: 5px 5px rgba(122,25,107, .5);
    }

    You can use this app to create the box-shadow property:

    https://www.cssmatic.com/box-shadow

    #2103136
    Sebastian

    Great, that worked great! Thanks 🙂

    #2103723
    David
    Staff
    Customer Support

    Glad to hear that

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