• Hi, I was wandering how to get a different “Home” page for logged in users..?

    Reason being, I don’t want logged in users to see the current home page with the “call to action” button as I have this set as “Register” and obviously those that are already logged in are already registered.
    Instead, I would like logged in users to have a “Welcome” page as the home page.

    I tried using the following code but it messed everything up and created a 404 error.. (I’m guessing its because I don’t know the page name for the responsive themes home page..?)

    /********** Multiple Static Home Pages **********/
    if( is_user_logged_in() ) {
        $page = get_page_by_title( 'Welcome');
        update_option( 'page_on_front', $page->ID );
        update_option( 'show_on_front', 'page' );
    }
    else {
        $page = get_page_by_title( '' );
        update_option( 'page_on_front', $page->ID );
        update_option( 'show_on_front', 'page' );
    }

    Anyway, any help on this would be much appreciated, thanks.

The topic ‘[Theme: Responsive] – Change logged in home page’ is closed to new replies.