Coder Social home page Coder Social logo

wp-login-page's Introduction

WP Login Page

Introduction

This mu-plugin allows you enqueue style on login page. The plugin will look for styles into :

  • dist/assets/login.css of the child theme
  • dist/assets/login.css of the parent theme
  • WP_DEFAULT_THEME/dist/assets/login.css
  • WP_CONTENT_DIR/wp-login-page/login.css

Requirements

  • WordPress > 4.7
  • PHP > 5.6

Installation

From composer

composer require beapi/wp-login-page

From files

Just download the wp-login-page.php into your mu-plugins directory.

Changelog

2.0.2

  • Use login_init hook instead of init (if wp-cerber is enabled, init hook seems to not be fired)

2.0.1

  • Update dev dependencies
  • Update the composer/installers constraint

2.0

  • BREAKING CHANGES : Change path to default theme file path dist/assets/login.css to dist/login.css

1.0.1

  • Fix platform URL construction
  • Add test on empty final file

1.0.0

  • First release

Filters

wp_login_page_theme_css

Allows you to change the theme filepath. If you need to change the filepath to theme/my_theme/assets/my-custom-login.css

<?php
add_filter( 'wp_login_page_theme_css', function() {
    return 'assets/my-custom-login.css' );
});

wp_login_page_platform_css

Allows you to change the platform global filepath. If you need to change the filepath to wp-content/customs/my-custom-login.css

<?php
add_filter( 'wp_login_page_platform_css', function() {
    return 'customs/my-custom-login.css';
});

Customize the logo

Example of CSS for cutomizing the logo :

body.login h1 a {
  display: block;
  width: 100%;
  background-image: url(wapuu.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 103px;
}

Contribute

Launch the local machine with lando:

wp-login-page's People

Contributors

rahe avatar asadowski10 avatar n-langle avatar

Watchers

François Thibaud avatar James Cloos avatar Amaury Balmer avatar  avatar

wp-login-page's Issues

Nom de la fonction get_stylesheet_uri()

Très confusant d'utiliser le même nom de fonction que celle officielle de WP, oui y'a le namespace, mais c'est confusant, je suggère de la renommer pour éviter tout mal de tête.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.