Title: hide logout
Last modified: July 7, 2017

---

# hide logout

 *  Resolved [ineedyou](https://wordpress.org/support/users/ineedyou/)
 * (@ineedyou)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/hide-logout/)
 * Hi,
 * any way to **hide** **logout button** with **css code**. Because after logout
   its going default wordpress login page…
 * thanks

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/hide-logout/#post-9298892)
 * I also use this plugin, and here’s a suggestion…
 * The class for that button is ‘wpas-btn wpas-btn-default wpas-link-logout’, so
   that’s what you’d need to target (probably with ‘display:none’).
 * The article at [https://getawesomesupport.com/documentation/awesome-support/templating/](https://getawesomesupport.com/documentation/awesome-support/templating/)
   explains how to add a css file which won’t be over-written when the plugin updates.
 * It also explains how to modify various elements, and if you add a copy of ‘ticket-
   navigation.php’ to the suggested folder it’s easy to either remove that login
   button or change the page to which it directs… in my install I’ve created a simple
   WP page with a ‘you’re now logged out message’.
 * The appropriate code is:
 *     ```
       <?php wpas_make_button( __( 'Log-out', 'awesome-support' ), array( 'type' => 'link', 'link' => wp_logout_url(), 'class' => 'wpas-btn wpas-btn-default wpas-link-logout' ) ); ?>
       ```
   
 * And wp_logout_url() can be modified to: wp_logout_url( ‘add_your-desired-url_here‘).
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/hide-logout/#post-9303729)
 * You can also use the following CSS to just hide the log out button if you like:
 *     ```
       .wpas-link-logout { 
       display:none;
       }
       ```
   
 * This should work for most themes.
 *  Thread Starter [ineedyou](https://wordpress.org/support/users/ineedyou/)
 * (@ineedyou)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/hide-logout/#post-9311799)
 * Hi,
    Below code solved my question. Million thanks quick reply and fast solution….
   wpas-link-logout { display:none; }
 *  Plugin Author [awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * (@awesomesupport)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/hide-logout/#post-9313595)
 * Glad we were able to help!
 *  Thread Starter [ineedyou](https://wordpress.org/support/users/ineedyou/)
 * (@ineedyou)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/hide-logout/#post-9376294)
 * [@awesomesupport](https://wordpress.org/support/users/awesomesupport/)
 * Hi again, also before open support on here, really i am trying. checking your
   css adding my child theme style.css 🙂 but i cant success.
    1 – can you also 
   please help me about to hide open ticket and mytickets button on top (top on 
   editor) 2 – how can i use my theme defualt button style instead of your submitting
   button ( i need to change background color, radious border, and hover colors)
   3 – If possible to change warring and success message colors.
 * Million thanks
 *  [lifewanders](https://wordpress.org/support/users/lifewanders/)
 * (@lifewanders)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/hide-logout/#post-9494966)
 * I tired adding the following to my themes CSS code with no success.
    .wpas-link-
   logout { display:none; }
 * When I add the code a receive a 404 error on the submit ticket and My ticket 
   pages. I am using Buddyboss Onesocial Marketplace theme.
 * Kind Reagards
    Dan

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘hide logout’ is closed to new replies.

 * ![](https://ps.w.org/awesome-support/assets/icon-256x256.png?rev=1849681)
 * [Awesome Support - WordPress HelpDesk & Support Plugin](https://wordpress.org/plugins/awesome-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/awesome-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/awesome-support/)
 * [Active Topics](https://wordpress.org/support/plugin/awesome-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/awesome-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/awesome-support/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [lifewanders](https://wordpress.org/support/users/lifewanders/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/hide-logout/#post-9494966)
 * Status: resolved