Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #553322

    Hi,I’m working on a site that contains few private pages only for logged in users but still visible in the menu. When I try to view one of these pages without being logged, Enfold leads me to the Error404 page. Error404 should be recalled when the searched content is not found and that’s the way it’s supposed to be. So, is there any way to have a custom Landing page for unauthorized access? The way it is now gives users the idea that there’s something wrong with the website. Thank you.

    #553370

    Hey Alberto!

    I don’t think private pages should be displayed in the menu by default. Are you actually dragging the pages to your menu or are you using custom links? Send us a link to your page and a WordPress login and we’ll take a look.

    Be sure to deactivate all plugins while testing.

    Cheers!
    Elliott

    #553625

    Private pages are in the menu because my client wants to show to visitors the titles of what is reserved to subscribers, sort of “see what you can get once registered”…and frankly it does make a lot of sense. The problem is that unlike a lot of CMS do (Modx is a typical example), WP does not distinguish between failed search or other server’s error and unauthorized access, it just redirects all of them to error404 page. Normally I would create a script that checks if the user is logged in and allows or denies access redirecting to a custom landing page and I would place the script inside the template which I associate private pages to. Problem is that Enfold template is so different from the default wp template and I don’t know where to place it.

    Alberto

    BTW wp has always had bugs and weird behaviors when it comes to pubblic and private content. For instance the fact that we cannot assign a subpage to a parent private page (private pages do not appear in the list) is akward. I had to create a script to obtain what other cms regularly do even for draft pages.

    #556474

    Hi!

    we can help you about theme related issues only. If you have general WordPress problems/question, then please contact WP support in general WordPress forum.

    Best regards,
    Andy

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.