Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #26109
    Samuel L
    Participant

    Hi,

    I was just going through you demo video and you never discuss how to get someone to log out of the website. I’ve looked on Woocommerce and the shortcode: [woocommerce_logout] does not work.

    Can you please assist? Thanks.

    sl

    #26118
    Support
    Member

    Hi Samuel,

    We only provide support for X theme.For that you should consult with Woocommerce people.

    Hope you understand.

    Thanks

    #26130
    m c
    Participant

    Hi,

    some of the shortcodes listed on woocommerce site dont work on non woocommerce themes, I don’t know whether they have taken them out on the 2.1.x versions or whether they are only integrated into their own themes. There are other shortcodes that no longer work aswell.

    regards

    #26143
    Support
    Member

    Hi Samuel,

    add following line of codes to your child theme functions.php

    function logOutLink() {
    $lout = wp_logout_url();
    echo '<a href="'.$lout.'" title="Logout">Logout</a>';
    }
    
    add_shortcode('logout', 'logOutLink');

    Use following shortcode to show logout link

    [logout]

    Thanks

    #26360
    Samuel L
    Participant

    Thank you so much. This is a much better answer than the previous support answer.

    #26571
    Support
    Member

    Hi Samuel,

    Your Welcome!

    Thanks

  • <script> jQuery(function($){ $("#no-reply-26109 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>