emanueledancelli / headless_wp

Minimal WordPress theme for headless installations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

headless_wp

License: MIT

A minimal WordPress theme for headless installations of wp.

 

Features

  • Redirects frontend to Rest api.
  • Customizes dashboard and cleans the UI.
  • Customizes login page.
  • Adds two custom dashboard widgets to guide end-user.

 

Usage

  • 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( 'your@email.here' !== $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.

 

Credits

Emanuele Dancelli - emanueledancelli@gmail.com

 

License

MIT

About

Minimal WordPress theme for headless installations.


Languages

Language:PHP 87.3%Language:CSS 12.7%