New Landing How can we help? Themeforest Theme Support Neighborhood Change login / log out in main menu

Viewing 15 posts - 1 through 15 (of 16 total)
  • #241394
    wildemaarten
    Member
    Post count: 105

    Hi,
    I can change the menu structure of my main menu. But i cannot change the login / log out option in that. Is that correct?
    I would like to disable that and insert a text that directs to My Account.
    Is that possible?

    Cheers

    #241413
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You can disable the account aux options in the header options then add your own link to the menu

    – Kyle

    #241416
    wildemaarten
    Member
    Post count: 105

    Hi Kyle,

    I have that on OFF already. Any idea?

    Cheers

    #241423
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Looks like your PHP files have been edited to add that login link, have you had a developer work on your site?

    – Kyle

    #241428
    wildemaarten
    Member
    Post count: 105

    Hi Kyle,

    No, i didnt. Just me and you guys.
    I only edited your tips and tricks from my topics and a memory edit in wpconfig php to increase to 128MB.

    Cheers

    #241430
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Can you please send me the link to the topic about adding this link to the menu?

    – Kyle

    #241438
    wildemaarten
    Member
    Post count: 105

    Hi Kyle,

    I am not aware that i logged a topic for this to enable it nor enabling this myself.
    Can you tell me which file is changed?

    Thanks

    #241439
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    That login item in the main menu is custom, it’s not part of the theme, so someone must have added it for you. If it was one of my colleagues, you must have a topic about it

    – Kyle

    #241445
    wildemaarten
    Member
    Post count: 105

    I understand Kyle. I am not saying you changed it ๐Ÿ™‚
    I had an alternative header plugin installed once for testing to see how it looks. Can that be the cause? I am sorry for any inconvenience..
    Thanks

    #241465
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Can you try deactivating all of your plugins to see if it’s anything to do with one of those

    – Kyle

    #241473
    wildemaarten
    Member
    Post count: 105

    I will install that plugin again to see if there is anything still in my settings or files left.
    Otherwise i will have to disable everything tomorrow morning early early.
    Thanks

    #241475
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Ok no problem

    – Kyle

    #241532
    wildemaarten
    Member
    Post count: 105

    Hi Kyle,

    I guess i copied this into my functions php. First trying after searching the knowledge base and then ask in a new topic ๐Ÿ˜‰

    No login / Logout on the mobile menu

    /* ========================================
    Login logout in menu mobile
    ===========================================*/

    add_filter( ‘wp_nav_menu_items’, ‘sf_loginout_menu_link’, 10, 2 );

    function sf_loginout_menu_link( $items, $args ) {
    if ($args->theme_location == ‘main_navigation’) {
    if (is_user_logged_in()) {
    $items .= ‘<li class=”custom_mobile”>Log Out‘;
    } else {
    $items .= ‘<li class=”custom_mobile”>Log In‘;
    }
    }
    return $items;
    }

    ?>

    <?php

    However. Can this be done only for the mobile menu and not for the normal site? So that it still exists in the mobile version but is is normal in the pc environment?

    Cheers,
    Maarten

    #241534
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Sure, add this to your custom css:

    @media only screen and (min-width: 481px) { 
    nav#main-navigation .menu > li.custom_mobile {
      display: none;
    }
    }

    – Kyle

    #242587
    wildemaarten
    Member
    Post count: 105

    Thanks, you can close this one

Viewing 15 posts - 1 through 15 (of 16 total)

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

License required for one of the following items
Login and Registration Log in · Register