How to put the "Sign in with TaxisNet" button on a page
The button is on the login screen by default. How to add it anywhere else with the [civipass_login] shortcode or the block, change its label and where it sends people, and what signed-in visitors see.

Civipass shows a Sign in with TaxisNet button under the WordPress login form as soon as the GSIS credentials are in place. Most bodies also want the button on a page of the site: a "my services" page, an application page, the home page. There are two ways, and they render the same thing.
The shortcode
Put this in any page or post:
[civipass_login]
Three attributes, all optional:
| Attribute | What it does |
|---|---|
label | The button text instead of "Sign in with TaxisNet". Used only when a single button is shown. |
redirect | Where to go after the sign-in, an address on this site. Empty: the page the shortcode is on. |
service | taxis for the ordinary button or otp for the one-time-code button, when the body has both. Empty: every configured service gets a button. |
[civipass_login label="Sign in to submit an application" redirect="/applications/"]
An address outside the site is ignored; WordPress's own redirect check is used.
The block
In the block editor, add the Sign in with TaxisNet block (civipass/login). It has the same label and redirect settings and is rendered on the server like the shortcode.
What different visitors see
- A visitor who is not signed in sees the button (or two, when the one-time-code service is on).
- A person signed in with a linked TaxisNet account sees You are signed in as … with a Sign out link instead.
- A person signed in with a password, on an account that is not linked, sees nothing. Linking is done from their profile with Link with TaxisNet.
- When no credentials are entered yet, administrators see Civipass: add the GSIS credentials in Settings › Civipass to show the sign-in button.; everyone else sees nothing.
Page caches
When the shortcode shows something personal (the signed-in line), Civipass asks page caches not to store the page, with the DONOTCACHEPAGE constant that WP Super Cache, W3 Total Cache, WP Rocket and others honour, and LiteSpeed Cache's own hook. A button alone can be cached.
The login screen
The button under the WordPress login form is controlled by Show the TaxisNet button on the WordPress login screen in Settings › Civipass (on by default). It keeps the redirect_to of the login page, so a person sent to log in by a protected page comes back to it.
Changing the look
The button is an <a class="civipass-button"> with a small icon, styled by the plugin's own stylesheet; your theme's CSS can override it. Developers can replace the markup with the civipass_button_html filter, which receives the HTML, the label and the address.
Refreshing the details
A second shortcode, [civipass_refresh], shows a signed-in, linked person a button, Update details from TaxisNet, that sends them to the GSIS and back with their current name and tax number. It is the same action as the button on their profile. It shows nothing to anyone else.