Okay
  Public Ticket #1696027
Underlined menu item
Closed

Comments

  •  1
    reinventstudios started the conversation

    On https://www.reinvent.dk the menu item 'Service' is underlined on the front page from start without mouse over or anything. 

    I guess the it might be caused byt he fact that I've inserted a #service as row ID and that the menu item points to that ID (https://www.reinvent.dk/#services) - but is it a bug in the theme or are there any work arounds?

    /Fred

  • [deleted] replied

    Hi Fred,

    Can you please send me your Wordpress credentials, because I need to login to your site and test this.

    To include your credentials click Insert Credentials button in editor toolbar (see how) so your reply will be private.

    Thanks!

  •   reinventstudios replied privately
  • [deleted] replied

    Hi Fred,

    I think that this is a bug in our theme too because I saw that the same issue is happening in Restaurant demo too. I checked for a solution but it's difficult to know what is the exact problem for this issue.

    I will assign this ticket to another team member and you should receive a reply this week.

    Thanks for your understanding.

  •  1
    reinventstudios replied

    Thanks Ylli!

    Yes - it is tricky, but it seems to me that it might have to do with the ID - since if you scroll pass that section (Services) then the line disappears 

  • [deleted] replied

    Hi Fred,

    I was trying to edit some theme files however I don't have enough permissions in WordPress Admin Panel to see the editor here:


    (view large version)

    Is it possible to give me access to edit theme files so I can test this issue and find the proper fix for that. Thanks

  •  1
    reinventstudios replied

    Hi Arlind

    Sure! How do I give you these premissions?

    /Fred

  • [deleted] replied

    Hi Fred,

    If you can give me FTP credentials that will be better and I can troubleshoot the issue faster.

    However, to change user role in Users edit list like shown here:


    (view large version)


    (view large version)


    (view large version)

  •   reinventstudios replied privately
  • [deleted] replied

    Hi Fred,

    I have added the following code in functions.php and it removed the highlighted item on homepage:

    // Remove current menu item on front page
    function kalium_remove_current_menu_homepage( $classes, $item ) {
        if ( is_home() || is_front_page() ) {
            $remove_classes = array(
                'current_page_item',
                'current-menu-item',
                'current-menu-ancestor',
                'current_page_ancestor'
            );
            foreach ( $remove_classes as $class_to_remove ) {
                $current_item_index = array_search( $class_to_remove, $classes );
                if ( false !== $current_item_index ) {
                    unset( $classes[ $current_item_index ] );
                }
            }
        }
        return $classes;
    }
    add_filter( 'nav_menu_css_class', 'kalium_remove_current_menu_homepage', 10, 2 );
    
    Now the homepage has not selected any item:


    (view large version)

  •  1
    reinventstudios replied

    Great! Thanks Arlind!

  • [deleted] replied

    Glad to hear that

    Have a great day!

    Will mark this ticket as solved from here.

    P.S: If you like our theme, it would help us a lot if you could give us five star rating on themeforest from your Downloads tab, (if you don't know how, just open this link).

    A huge thank you from Laborator in advance!