Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1164902
    muashan
    Participant

    Hi there

    First of all, this is the best theme I’ve ever bought.

    I have an issue with changing the background color of the submenu. I can’t find the right selector for this. I’ve attached an image showing how the menu looks when just doing a mouse over (left side) and after pressing any of the subitems. The problem should be ovious. I don’t want the dark overlay (selected?) after selecting a sub item.

    Note: the Subitems are links to anchors on the same page so no page jumps. Stack is Integrity. Also find the link in the reply, marked as private

    Hope someone can help me here.

    I’ve used this css to change the background (foreground seperate):

    .desktop .sub-menu{
      background-color:#ffff00;
    }
    #1164951
    muashan
    Participant
    This reply has been marked as private.
    #1165551
    Paul R
    Moderator

    Hi,

    Please replace your links to just ids

    eg.

    Change this https://enisjoldic.ch/01_dev/ueber-uns/#kompetenzen to just #kompetenzen

    For more information kindly refer to the link below

    https://community.theme.co/kb/how-to-setup-one-page-navigation/

    Hope that helps

    #1166942
    muashan
    Participant

    Hi Paul,

    not sure if we are on the same page here. I just want to change colors of the (given) submenu. I also have other Menu’s on that site that would not work with your proposal (reducing the menu item to just #kompetenzen). Let’s say I’m on the Menu “KONTAKT” and now select MITARBEITER from Menu “ÜBER UNS”, then it can’t jump to that as it expects the ID on that very page (KONTAKT), which simply is not there 🙂

    Or did I miss something in your answer and completely fall of the wagon?

    Thanks
    Dragan

    #1167519
    Rad
    Moderator

    Hi there,

    How should it behave? Yes, it will not jump or scroll since it’s linking outside KONTAKT. It will load the page, jump to where is #kompetenzen. If it’s not there then you can add that ID to your target section. And as by checking, it’s the ID of an image under this page https://enisjoldic.ch/01_dev/ueber-uns/

    Are are you referring to the active status of sub menu item that matches the section? One page is not really setup for multiple pages and submenus. It’s main purpose is floating one line navigation matching the sections.

    Thanks!

    #1169073
    muashan
    Participant

    Ok, lets forget about ID’s for a second and get back to the problem I have. I’ve provided a screenshot that should hopefully make it obvious what I’m trying to do and how it looks at the moment (in case of a selected item under “ÜBER UNS”, all the subitems get that unwanted black background color, instead only the one that was selected).

    Thanks
    Dragan

    #1169135
    Christopher
    Moderator

    Hi there,

    One page navigation and primary menu shouldn’t be the same.
    Did you activate one page navigation for ‘ueber-uns’ page ?
    Instead of using absolute URL, use relative URL inside one page navigation.

    e.g :

    Absolute URL : https://enisjoldic.ch/01_dev/ueber-uns/#kompetenzen
    Relative URL : #kompetenzen

    Hope it helps.

  • <script> jQuery(function($){ $("#no-reply-1164902 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>