Jump to content

Different Theme for Logged in users?


DavidBee

Recommended Posts

Yes it can be done very simply. Have two style sheets.

 

We are thinking of going more down a route thats more like an "admin" theme rather than having a universal website style.

 

That's an interesting idea.

 

We just launched a WordPress integration of our website. Well an updated integration. It is semi mobile responsive.

Link to comment
Share on other sites

  • 9 years later...

Use the following code

I used it in case kept Hostiko as default theme and used Lagom for client area only .

 

<?php
add_hook('UserLogin', 1, function($vars) {
 
    header("Location: https://example.com/clientarea.php?systpl=lagom2");

    die;
});

add_hook('UserLogout', 1, function($vars) {
    header("Location: https://example.com/index.php?systpl=hostiko");
    
    die;
});

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated