New Landing How can we help? Themeforest Theme Support Neighborhood Missing styling on sidebar menu

Viewing 8 posts - 1 through 8 (of 8 total)
  • #113820
    azura_eyes
    Member
    Post count: 48

    Hi,

    I have sidebar with a custom menu, static pages (but noticed same behaviour in product category sidebar as well).

    There are some missing CSS styles for those:
    1. when the parent is selected, even the children are marked as current in the sidebar menu, in here marked with red color
    2. there are missing lines after the parent/before the first child
    3. missing line after the last child/last item in the sidebar menu
    4. as well missing current page in the top menu

    Please see the attachment. Any solutions?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
    #113898
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Can you show the exact page for us to inspect.

    Let us know,

    Thanks,
    laranz.

    #114105
    azura_eyes
    Member
    Post count: 48
    This reply has been marked as private.
    #114132
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    1) You need to set the menu nav active color

    2) Add this to your custom css:

    .widget_categories ul > li:first-child, .widget_archive ul > li:first-child, .widget_nav_menu ul > li:first-child, .widget_recent_comments ul > li:first-child, .widget_meta ul > li:first-child, .widget_recent_entries ul > li:first-child, .widget_product_categories ul > li:first-child, .widget_layered_nav ul li:first-child {
      border-top: 1px solid #e4e4e4;
    }

    – Kyle

    #114179
    azura_eyes
    Member
    Post count: 48

    Thanks Kyle!

    Yes, the active color is now set, thanks! And the line is there, thanks to your css code BUT still when the parent page is selected the BOTH parent and children are marked wtih the “current” color in the sidebar, and NOT only the current page (-> the parent). Please see in the link above.

    #114435
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    .widget_nav_menu ul > li.current-menu-item a {
      color: #111111;
    }
    .widget_nav_menu ul > li.current-menu-item > a {
      color: #dd3333;
    }

    – Kyle

    #114978
    azura_eyes
    Member
    Post count: 48

    Thanks Kyle, but you need to add !important to those otherwise they don’t want to work. And then the a:hover otherwise the color does not change when the mouse is over the link… ๐Ÿ™‚

    .widget_nav_menu ul > li.current-menu-item a { color: #111111 !important; }
    .widget_nav_menu ul > li.current-menu-item a:hover { color: #dd3333 !important; }
    .widget_nav_menu ul > li.current-menu-item > a { color: #dd3333 !important; }

    Hate to put those !important all over the css but sometimes is the only way…

    #114980
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok great ๐Ÿ™‚ Glad you sorted it

    – Kyle

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register