Okay
  Public Ticket #2267160
Navigation menu creation
Closed

Comments

  • boblibob started the conversation

    How can I make a menu with a slash "/" as separator between menu choices and preferable not included in the link?

    Like this: "Home / About / Services / Contact".

    I tried this additional CSS:

    ul.menu.m-header-default-menu li.menu-item:before { content: "/"; padding: 0 .75em; }
    ul.menu.m-header-default-menu li.menu-item:first-child:before { content: ""; padding: 0; }

    ul.menu.m-header-default-menu li.menu-item {
    margin-left: 0;
    }

    But the slashes gets smaller on the height and aligned at top. Looks ugly.

    Thanks!

  •  675
    Neuron replied

    Hi,

    I am sorry for the late reply.

    Please try giving the CSS to the link (a) instead.

    ul.menu.m-header-default-menu li.menu-item a:before { content: "/"; padding: 0 .75em; }
    ul.menu.m-header-default-menu li.menu-item:first-child a:before { content: ""; padding: 0; } ul.menu.m-header-default-menu li.menu-item {
        margin-left: 0;
    }

    So, it looks like this: https://prnt.sc/qmnf2c

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    No :-) its currently a underline mouse over so the slash will also be underlined on mouse over. I don't want that.

    I'm using this CSS now:

    ul.menu li.menu-item:before { content: "/"; padding: 0 .6em 0 .4em; font-size: 1.8rem; color: #000000; }
    ul.menu li.menu-item:first-child:before { content: ""; padding: 0; }
    ul.menu li.menu-item { margin-left: 0; }

    The mouse over underline is something I'm also wondering about where is it set. Can not find it in the header template settings. How to change the default mouse over?

    Thanks!

  •  675
    Neuron replied

    Hi,

    Well that's in the box shadow property, we use it like this.

    ul.menu.m-header-default-menu li.menu-item>a:hover {
        -webkit-box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 1px 0 #000;
        box-shadow: inset 0 0 0 rgba(0,0,0,0), 0 1px 0 #000;
    }

    So, if you want to remove it you can add box-shadow: none !important;

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    So thats not editable with customizer or Elementor in the header template?

    Did not work for me:

    ul.menu li.menu-item > a:hover { -webkit-box-shadow: none !important; box-shadow: none !important;
    }

    I was actually looking for this CSS in the inspector previously but could not find anything that making this hover underline.

    Thanks!

  • boblibob replied

    Sorry I can not get ride of the mouse over underline. And why is it on the logo as default?

    And why is it not editable with customizer or Elementor header template?

    Thanks!

  •  675
    Neuron replied

    Hi,

    Add the following style in Custom CSS.

    a:not(button) {
        box-shadow: none !important;
    }

    This will remove the underline link.

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    Its gone on the logo but not on the menu.

    Why can't this box shadow be change in Elementor?

    Thanks!

  •  675
    Neuron replied

    Hi,

    Please try with the following selector.

    ul.menu.m-header-default-menu li.menu-item>a:hover {
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }
    

    It can't be changed through Elementor since, it's part of the theme.

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    Sorry don't work. I tried this one already. Its a bit different classes coz I'm using a header template.

    ul.menu li.menu-item>a:hover {
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

    Thanks!

  •  675
    Neuron replied

    Hi,

    Ah alright, I thought you were using the default header. This one should work.

    .m-nav-menu--horizontal ul li.menu-item > a {
      box-shadow: none !important;
    }

    I've tried it on a template header and it worked.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    Nope nothing happen.

    The CSS for the logo worked.

    Thanks!

  • boblibob replied

    How about attached image? But don't understand how to add a rule for this.

    Thanks!

  •  675
    Neuron replied

    Hi,

    Can you please provide me with your wp-admin, I will have a quick look to see what's going on. Make sure to tick private on the reply.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    But I'm using a few other custom CSS rules and its working. In this case I can not even find the correct class that makes this hover box-shadow in the web inspector and try it out there temporarily.

    The website is re-design.se. There is one portfolio added currently.

    Thanks!

  •  675
    Neuron replied

    Hi,

    Sorry, it seems like the header template needs another CSS line.

    ul > li:hover > a:not(.menu-item-icon) {
        box-shadow: none !important;
    }

    https://prnt.sc/qonlh7

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    Sorry I already tried that one. It did not work for me.

    It looks kind of messy in CSS in the inspector. Same classes/rules comes like three times.

    Okay never mind. I leave this. There is more critical issue than this.

    Thanks!

  • boblibob replied

    I found out which CSS makes the underline hover. Removing them in the web inspector its gone but adding them with none !important; in the additional CSS it has no effect.

    .elementor-29571 .elementor-element.elementor-element-1f6b0b6d .m-nav-menu--horizontal ul > li:hover > a:not(.menu-item-icon) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    .elementor-29571 .elementor-element.elementor-element-1f6b0b6d .m-nav-menu--horizontal ul > li:hover > a:not(.menu-item-icon) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    .elementor-29571 .elementor-element.elementor-element-1f6b0b6d .m-nav-menu--horizontal ul > li:hover > a:not(.menu-item-icon) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    .m-nav-menu--horizontal ul li.menu-item > a:hover {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    .elementor a:hover, .elementor a.active {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    .elementor a:hover, .elementor a.active {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    a:not(button):hover, a:not(button).active {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    a:not(button):hover, a:not(button).active {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    

    Thanks!

  •  675
    Neuron replied

    Hi,

    I am sorry for the late reply.

    That one should have worked? If it does not, please provide me with your wp-admin, I will have a quick look.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • boblibob replied

    If you use correct CSS it works. Don't need my WP login.

    Since the original CSS rule already have !important it can not be overridden with !important. It have to be added with some element that has higher priority.

    So this CSS works to take away the mouse over underline:

    div .elementor-29571 .elementor-element.elementor-element-1f6b0b6d .m-nav-menu--horizontal ul > li:hover > a:not(.menu-item-icon) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    div .elementor-29571 .elementor-element.elementor-element-1f6b0b6d .m-nav-menu--horizontal ul > li:hover > a:not(.menu-item-icon) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }
    div .elementor-29571 .elementor-element.elementor-element-1f6b0b6d .m-nav-menu--horizontal ul > li:hover > a:not(.menu-item-icon) {
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    }

    Thanks!

  •  675
    Neuron replied

    Unfortunately we needed on some parts to add important otherwise it could not work.

    Glad to know that with the new CSS it works, thanks for sharing itsmile.png

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.