• Resolved adrian.jao

    (@adrianjao)


    Hi

    First of all I must say I am just starting with WordPress. I am coming from Java world. Right now I am in charge with improving a WordPress app (website + Android and iOS app). I need to update the look and feel of the front page (the page the user is landing on IF he/she is not logged in).

    My boss wants to have a single-page app feel on this front page, while keeping the old familiar feel for the users that have accounts. So my problem is: how to add a single-page app on top of an existing WordPress theme? I want to keep the functionality of my current theme, but change completely the landing page for my visitors (while still automatically logging in my users).

    Any help will be greatly appreciated! Since this is my first post on this community please be gentle if my problem seems trivial for experimented WordPress developers. Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you investigated the WordPress page hierarchy system yet? You might find that helpful as far as templates / how WP moves down the line in looking for different pages (https://wphierarchy.com/)

    It sounds like you’d like to shift how your home/index page looks while still keeping most of the theme in tact (which means you wouldn’t probably be touching the header/footer, etc.)

    Thread Starter adrian.jao

    (@adrianjao)

    Hi allisonplus and thank you for your answer.

    The problem is I need to change the way my home/index page looks like AND remove the header / footer on it, while keeping the look and functionality on the rest of the website, which is available for logged in users. My first page should be a presentation of the app, and should include a simple widget for logging in in top right corner.

    Any idea how to do this? There are WordPress themes which are “single-page apps”, but I want to apply this behaviour to my front page while keeping my current theme for the rest of my website. Is that possible?

    Depending on how your theme is set up, it might be possible to do using a conditional (if/else) type of statement with “is_user_logged_in()” (https://codex.www.ads-software.com/Function_Reference/is_user_logged_in)

    Something along the lines of-

    if ( is_user_logged_in() ) {
      // show these elements
    } else {
        // different front page...
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add a single-page app on top of a WordPress theme’ is closed to new replies.