• Resolved wowcroftynm

    (@wowcroftynm)


    Hello:

    How would I introduce the functionality to show a specific page template based upon whether a user is logged into the site or not? Is there a plugin which exists to do this? Thank you in advance for any suggestions.

    Regards,

    Matthew

Viewing 3 replies - 1 through 3 (of 3 total)
  • If you’re a developer creating these “templates” yourself, the conditional tag is_user_logged_in() should come handy.

    If by “page template” you’re referring to something else (eg pre-defined layout from some page builder), it would help to explain this further.

    Good luck!

    Thread Starter wowcroftynm

    (@wowcroftynm)

    George:

    How would I switch templates on existing pages depending upon whether a user is logged in. For instance, I have several pages that are displayed to both logged in users and site visitors, but I am not showing any widgets on these pages for visitors. I have two different page templates created to accomplish this (one full width without widgets and one with widget space). So, I would like the full width template to be used when the user is logged out, but the sidebar template to show on these same pages when the user is logged in. I hope this helps!

    Regards,

    Matt

    Thread Starter wowcroftynm

    (@wowcroftynm)

    Thank you very much for your assistance. I have worked out a solution.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Use Different Page Templates for Logged Out Users’ is closed to new replies.