Login Message and Checkbox Spacing Issues on Ask Question Page

272 viewsIssues
0

Even though I am already logged in, I still see the following message below the “Ask a Question” form:
“Hello Visitor! You need to login before accessing this page.”
This appears on the page: https://anspress.net/questions/ask/
Could you please check why this message is appearing for logged-in users?
Also, please add a little spacing to the right of the checkbox labeled “Only visible to admin and moderator” to improve the layout and make it look cleaner.  AARP life insurance login

Answered question
0

Hello,
I checked the public AnsPress page, and the visitor message is currently visible directly beneath the “Ask a question” heading, followed by a login form. This suggests the page is rendering the logged-out state, although an authenticated session is needed to confirm why it happens to logged-in users.

  • Exclude the Ask Question page from page caching.
  • Check whether AnsPress correctly detects the WordPress login session.
  • Check for conflicts with membership, security, or paybyplatema io authentication plugins.
  • Ensure the page does not display the guest login message when is_user_logged_in() returns true.

For the checkbox, a small CSS adjustment should improve the spacing:

<code>.ap-form-field input[type="checkbox"] {
    margin-right: 6px;
}</code>
Edited answer
You are viewing 1 out of 1 answers, click here to view all answers.