• Resolved ineedyou

    (@ineedyou)


    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)
  • 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/ 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

    (@awesomesupport)

    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

    (@ineedyou)

    Hi,
    Below code solved my question. Million thanks quick reply and fast solution…
    .wpas-link-logout {
    display:none;
    }

    Plugin Author awesomesupport

    (@awesomesupport)

    Glad we were able to help!

    Thread Starter ineedyou

    (@ineedyou)

    @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

    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.