Logout Issue

This topic contains 9 replies, has 3 voices, and was last updated by  patrik 2 weeks, 5 days ago.

  • Author
    Posts
  • #5342

    mb299
    Buyer
    Post count: 84

    Hi,

    I am using WP Ver :5.2.3 & GD Ver :2.0.0.66

    Its a listing website using Supreme Directory theme. The plugins that i am using are Geo Directory, Ninja Forms, Code Snippets & UsersWP along with Button Generator.

    Now all my links are working but logout. I made it partially working by assigning https://www.example.com/wp-login.php/action=logout to the button. It takes me to the logout page “You are attempting to logout from website.Do you really want to Logout?” Screenshot attached.
    After clicking “logout” in this message, it logs me out, which is fine.
    My issue is: a. At the logout screen(there’s no way of canceling the logout – No cancel button or Yes/No.
    b. On top of my browser tab, it says “Something went wrong”. I need to get rid of this.
    c.Which is related to all the forms: login,register account etc… The pages are really simple & when i try to add a featured image, it shows in my side bar(screensshot attached of login page) but doesn’t show on these pages.
    d. I changed the background color of the form to light blue using .uwp-login, .uwp-registration, .uwp-forgot, .uwp-account {
    background-color: #D9F1F0;
    } – Is there a way to change the color of the submit/login/register buttons to match my website?

    Please advise.
    thanks / Manish

    Attachments:
    You must be logged in to view attached files.
    #5347

    Paolo
    Site Admin
    Post count: 31142

    Hi,

    sorry to hear about that.

    Please provide a link and admin credentials in a private reply and the developer will follow up.

    Thanks

    #5349

    mb299
    Buyer
    Post count: 84
    This reply has been marked as private.
    #5350

    patrik
    Moderator
    Post count: 1385

    Hi,

    The logout link like https://www.example.com/wp-login.php/action=logout will not work as it requires security nonce to work properly otherwise it will display something went wrong screen message and then you can logout from the link there in a message. You should use https://codex.wordpress.org/Function_Reference/wp_logout_url function to create a link/button to logout.

    Let me know if this doesn’t work for you.

    Regards,
    Patrik

    #5351

    mb299
    Buyer
    Post count: 84

    Hi Patrik,

    it didn’t work for me. wp_logout_url() function is already defined in my php… But i managed to logout completely using a different link and redirection url.

    Any inputs/ resolution for points i mentioned as c and d in my initial post.

    Manish

    #5354

    patrik
    Moderator
    Post count: 1385

    Hi,

    Regarding c and d points, UsersWP doesn’t manage the featured image. It depends on the template used by the theme. It can be done with customization. We don’t provide support for customization. For changing button background you can try following CSS:

    body.uwp_page .uwp_form input[type="submit"] {
        background: #D9F1F0;
    }

    Let me know if it helps.

    Regards,
    Patrik

    #5355

    mb299
    Buyer
    Post count: 84

    Thanks Patrik,

    This worked.

    I will speak to GeoDirectory guys who handle featured images

    Manish

    #5357

    patrik
    Moderator
    Post count: 1385

    I have assigned this ticket to GD developer who will look into this by Monday.

    Regards,
    Patrik

    #5359

    mb299
    Buyer
    Post count: 84

    Thank you Patrik

    #5371

    patrik
    Moderator
    Post count: 1385

    Hi,

    Displaying the featured image for UsersWP pages requires customization in the theme. If it is required for you then you can just change line no. 556 in functions.php file of the supreme directory theme from

    add_filter('get_post_metadata', 'sd_hide_banner_on_uwp_pages', 10, 4);

    to

    //add_filter('get_post_metadata', 'sd_hide_banner_on_uwp_pages', 10, 4);

    Let me know if this resolves your issue. Also, you have to make this change all the times you update the theme.

    Regards,
    Patrik

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

You must be logged in to reply to this topic.