Sugestion

Home Forums Jevelin Theme Sugestion

Home Forums Jevelin Theme Sugestion

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Hello again!

    This theme is awesome! I love it.

     

    I have a suggestion:

    you could have in the header a logout button if user is logged.

     

    I achieve that with this in helpers.php, but i am sure you can do it better:

     

    if ( ! function_exists( 'jevelin_nav_wrap_logout' ) ) :
         function jevelin_nav_wrap_logout() {
    
                 if ( is_user_logged_in('login') ) :
                     $val = esc_html__( 'Sair', 'jevelin' );
                 else :
                     //
                 endif;
    
                 return '

    ‘; } endif;

     

    Than i had $wrap .= jevelin_nav_wrap_logout(); to the header options.

    The pre is messing up the code above, i hope you understand something.

     

    When i finish my custom theme i am going to share here in forum

    Thank you!

    Hi @msjcaetano,

     

    I hope you are well today and thank you for your suggestion.

     

    We will consider this in the future version of theme development.

     

    If you want to add this link in the header menu then you can also do this by using the following solutions.

     

    http://wordpress.stackexchange.com/a/156261/14347

    https://wordpress.org/plugins/baw-login-logout-menu/

     

    Best regards,
    Shufflehound team

    Ok Shufflehound team!

    In that cases the Button is replaced, i think that the best way is to have the one that you already have and put one for logout at the right side.

     

    I already did that with the code in the previous message but Thank You!

     

    Best regards,

    Marcos Caetano

    You are most welcome here 🙂

     

    Sure we will do consider it.

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