Logout Issue
This topic contains 9 replies, has 3 voices, and was last updated by Patrik 6 years, 1 month ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
September 27, 2019 at 12:27 pm #5342
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 / ManishSeptember 27, 2019 at 3:02 pm #5347Hi,
sorry to hear about that.
Please provide a link and admin credentials in a private reply and the developer will follow up.
Thanks
September 27, 2019 at 3:46 pm #5349This reply has been marked as private.September 28, 2019 at 5:25 am #5350Hi,
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,
PatrikSeptember 28, 2019 at 6:31 am #5351Hi 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
September 28, 2019 at 6:54 am #5354Hi,
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,
PatrikSeptember 28, 2019 at 7:28 am #5355Thanks Patrik,
This worked.
I will speak to GeoDirectory guys who handle featured images
Manish
September 28, 2019 at 9:09 am #5357I have assigned this ticket to GD developer who will look into this by Monday.
Regards,
PatrikSeptember 28, 2019 at 9:21 am #5359Thank you Patrik
September 30, 2019 at 11:34 am #5371Hi,
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 -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket