Requests page login

Hi Team, I need to make the requests page only visible if you are logged in, how can I do this?

Hi,

If you have Requests in the header menu, please use this CSS snippet to hide it from non-logged-in users. Don’t forget to adjust the menu item number to match yours, you can find the item number using the inspect tool in your browser (right-click > Inspect) or with tools like Yellow Pencil:

body:not(.logged-in) .menu-item-195 {
  display: none;
}

Hope this helps.

Thank you but I don’t have requests in the menu, I need it to force you to login to view that page when you click on the button I have on a different page.

Please use this code snippet and change listing(s) to request(s): Hide the listing pages from non-registered users (redirect to login form) #hivepress #listings · GitHub.

P.S. Please note that we have to move this topic to the Requests forum category. Since it’s related to a premium extension, the forum category is restricted — please add the license key to the account settings or consider renewing support if you still need assistance related to the premium themes or extensions: Renew Support | HivePress

Thank you, works perfectly.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.