A minimal WordPress theme for headless installations of wp.
- Redirects frontend to Rest api.
- Customizes dashboard and cleans the UI.
- Customizes login page.
- Adds two custom dashboard widgets to guide end-user.
-
If you have git installed
git clone
this repository or else download it.git clone https://github.com/emanueledancelli/headless_wp
-
Customize email in
/inc/dashboard.php
if( '[email protected]' !== $current_user->user_email)
This is usually the admin login email who will retain access to the original interface without the UI elements removed.
-
Customize widgets body/name in
/inc/widgets.php
function custom_dashboard_widget_one() { echo ' <p><a href=""></a></p> <p><a href=""></a></p>'; }
You can setup a link to provide easy access to the user to the relevan section of the dashboard.
If you don't want to use the widgets just comment out
require_once 'inc/widgets.php';
in
functions.php
. -
Customize error message and url in
/inc/login.php
.function error_override() { return 'your message goes here'; }
-
Add your custom logo/screenshot.
screenshot.png
is the theme screenshot.logo.png
will be displayed on login page. -
Zip and upload to WP
Installs as a regular theme.
Emanuele Dancelli - [email protected]