Home>Support>Different pages loading based on what their logging status is

Different pages loading based on what their logging status is

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

At the moment when logged in I have buttons that switch between editing addresses and account details. But when logged out these buttons can still be seen, I have little coding experience outside of vb so would it be possible to make an if statement so that if a user is logged in the load the page with buttons else load the standard logging page. Even code that hides the buttons until a user is logged in would be fine.
Thank you

URL: https://www.xxivwatches.com/my-account/edit-address/billing/

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 10 years, 22 days ago Andrew Misplon
    Hi, I Work Here

    Hi Hughes1208

    Let’s try hiding the buttons in a very basic way using the following inserted at Appearance > Custom CSS:

    /* Account */
    
    #pg-53-0 { display: none; }
    .logged-in #pg-53-0 { display: block; }
    

    Let me know how it goes.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More