This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Different pages loading based on what their logging status is

10 years ago · Last reply by Andrew Misplon 10 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 10 years, 8 months ago

    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.

Have a different question or issue?

Start New Thread