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

    Hi support!

    I activated the sidebar navigation option in Enfold > Sidebar Settings
    It works well for pages that are on level 2 (just have one ancestor) – see link#1
    But if it has 2 ancestors, the design of the menu is lost as the parent name appears – see link #2

    Could you please tell me how to make sure that the sidebar navigation always look like the one in link #1?

    Thanks!

    A.

    #639313

    Hey antoine251,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    .sidebar .widget_nav_menu ul:first-child .current_page_item {
        padding-right: 52px;
        padding-left: 0;
        left: auto;
        top: 1px;
        margin-top: -1px;
        padding-top: 1px;
        width: 100%;
        box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.2);
        margin-bottom: 4px;
        background: #fcfcfc;
    }
    

    Best regards,
    Yigit

    #639370

    Hi Ygit,
    Thanks, that helped on the design!
    Now, the last thing I want to achieve is to remove from sidebar nav all the parent items:

    In other words:
    Médecine générale << level 1 item (parent) – I want to REMOVE
    Nos médecins << level 2 item – I want to KEEP
    Médecine familiale << level 2 item – I want to KEEP
    Prélèvements sanguins << level 2 item – I want to KEEP
    Soins infirmiers << level 2 item – I want to KEEP
    Soins à domicile << level 2 item – I want to KEEP
    Urgences sur rendez‑vous << level 2 item – I want to KEEP
    Vaccination << level 2 item – I want to KEEP
    Services complémentaires << level 1 item – I want to REMOVE

    Thanks!
    Best regards,
    Antoine

    #640088

    Hi,

    Thank you for the info. Please add this in the Quick CSS field:

    .nested_nav .page_item_has_children > a {
        display: none !important;
    }

    Best regards,
    Ismael

    #640410

    Hi Ismael,
    That’s exactly what I needed.
    Thanks a lot & have a great day!
    Antoine

    #640417

    Hey!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘sidebar menu shows ancestor’ is closed to new replies.