Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #250745
    #251241

    Can anyone help me?

    #251492

    Hi!

    Try to replace this line:

    
    $items .= '<li class="menu-item custom-menu-item"><a href="<?php echo wp_logout_url( home_url() ); ?>" rel="nofollow" title="Logout">Logout</a></li>';
    

    with:

    
    $items .= '<li class="menu-item custom-menu-item"><a href="'.wp_logout_url(icl_get_home_url()).'" rel="nofollow" title="Logout">Logout</a></li>';
    

    For more information refer to: https://wpml.org/de/documentation-3/support-2/mehrsprachige-wordpress-themen-erstellen/link-zur-startseite/

    Cheers!
    Peter

    #251497

    Hey Dude,

    I tried out what you said and read the link also. None of those options worked out. It still doesn’t logout the user nor redirect.

    Further more I forgot to mention that I’m also using the plugin “Login Sidebar” to even make login possible in the secondary menu.

    #251499
    This reply has been marked as private.
    #252476

    Hey!

    I fixed it. The code line must look like:

    
    $items .= '<li class="menu-item custom-menu-item"><a href="'.wp_logout_url(icl_get_home_url()).'" rel="nofollow" title="Logout">Logout</a></li>';
    

    Regards,
    Peter

    #252546

    Ahh…. Yeah okay! Hehe.

    Thanks a lot for the help, truly appreciated and amazed at how good the support is for this theme. Without you guys I would say the theme would loose 30% of it’s value. Thanks again!

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Submenu adding dropdown/hover login/logout widget/buttons’ is closed to new replies.