End of Year Sale: 30% off your first year on annual plans. Use code AP5-30-OFF See plans

Add a login bar (Login Toolbar block)

Build Your App · Dokumentacja AppPresser

Add a login bar (Login Toolbar block)

Ten artykuł nie został jeszcze przetłumaczony, dlatego jest wyświetlany po angielsku.

Your app journey: step 4 of 9, Add pages and features. New here? Read Start here: build your app with AppPresser first.

What you'll do: Add a login bar to a page with the Login Toolbar block. People use it to log in to your app with their WordPress username and password.

Before you start

  • Make sure the people who will log in have an account on your WordPress website.

Add the block

This block has no settings.

  1. In the left menu, under Customization, click Custom Pages.
  2. Click the name of the page you want to change. To make a new page instead, click Add New Page, type a title, keep Page Builder selected and click Create Page.
  3. Below the last block on the page, click Add Block.
  4. In Search blocks…, type Login Toolbar, then click the block. It is added to the bottom of the page.
  5. Click Save Changes at the top of the editor.
  6. To see a new page in the App Preview, add it to a menu. See Add a page to your app menu.

What you see in the app

When nobody is logged in, the page shows a LOGIN bar.

A Courses page in the App Preview with the LOGIN bar at the top, next to the editor

The LOGIN bar in the App Preview below the PURCHASE button and the Personalized Ads switch

To log in, people do this:

  1. Tap LOGIN. The Login window opens.
  2. Type their Username and Password.
  3. Tap SUBMIT. Wait a few seconds.

The Login window in the App Preview with Username and Password boxes and the SUBMIT button

To close the Login window without logging in, they tap the X at the top.

The full-screen Login window with the X close button at the top right and Forgot password? below SUBMIT

After someone logs in, the bar shows LOGOUT and their profile picture. If they have no picture, a gray circle shows.

The Courses page after logging in, with LOGOUT and a profile picture circle in the bar

If you chose LearnDash when you made your app, the Courses page AppPresser made for you already has this block.

Tips

Tips

  • To move a block, drag it by its handle (the dots on the left). Click the arrow to fold it closed.
  • To copy a block, click the Duplicate icon.
  • To turn a setting on or off, click the switch itself, not the words next to it.
  • After you save, open the page in the App Preview and check your changes.

Careful: The trash icon removes a block right away. Check before you click.

You're done when the block shows on your page in the App Preview.

Next step

Show your WordPress posts (WordPress Post List block)

Czy to było pomocne?

Nie mogą Państwo znaleźć?

Nasz zespół wsparcia pomoże w konfiguracji, buildach i sprawach sklepów z aplikacjami.