You can do this two way.But I prefer to go for the second way.You need to put this code in your plugins file.
First way:
function my_loginlcustomization() {
echo '<style type="text/css">
h1 a {
background-image: url(' . plugin_dir_url( __FILE__ ).'/login/logo.png) !important;
}
</style>';
}
add_action('login_head', 'my_loginlcustomization');
Second Way(I prefer):
function my_loginlcustomization() {
wp_register_style('custom_loginstyle', plugins_url('/css/login.css', __FILE__));
wp_enqueue_style("custom_loginstyle");
}
add_action('login_head', 'my_loginlcustomization');
Thanks
Related Posts:
- How do I force wp_enqueue_scripts to load at the END of ?
- How to laod wp_enqueue_style to another header i created my self
- How do I make my plugin load before the headers are output so I can redirect wordpress?
- how to include other plugins css files in a shortcode?
- How can I dequeue a Plugin Stylesheet?
- Add code into on a per page/post basis
- How to load different css file for different pages
- How to remove/hide action links cluttering under specific plugins’ names
- Get info (url) from already enqueued styles
- Change My Basket text in the header of WooCommerce Artificer theme
- wp_enqueue_style in Plugin [duplicate]
- Plugin throws up 404 on front-end when when enqueuing style with filetime
- How to send “Location” header on plugin form submit event?
- Meteor Slides as header only for homepage and Use featured image of each page as header for respective pages
- How can I enqueue a style only when a particular widget is active?
- Login with email (WP Modal Login)
- Prevent CSS/JS loading when plugin is not used
- Strip HTML comments from plugins in header/footer
- wp_enqueue_style specifics for overwriting plugin styles
- filemtime() warning when enqueuing style within plugin
- send_headers don’t work on wordpress multisite
- WordPress login with Phone Number [closed]
- How to enqueue a theme style-sheet to my admin settings page?
- adding meta data using plugin to top of head
- Is it possible to enqueue CSS files from plugin before theme’s CSS files?
- How to make wp_enqueue_style and wp_enqueue_script work only on custom post type
- How to remove style and js from theme and add your own style and js where shortcode is used?
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Headers already sent when I try to add headers via a shortcode
- WordPress repository forbids me call wp-load.php in non-WordPress file
- Making a plugin only available on the front-end for the logged in super admin
- Show an image in my header.php
- Headers Content-Security-Policy CSP Major Issue
- How to remove plug in styles for WPForms Lite [closed]
- How to debug error message: Cannot modify header information
- Redirect already logged in users away from a page to a specific page base on user role
- Can’t catch enqueued style
- Adding Font Awesome to WP Plugin
- Object method calling for global $wpdb in header.php
- What does making sure “that your theme is WordPress header and footer tag enabled” mean?
- Know which plugin is calling JS in wp_head()?
- My single.php page does not show the related data to the post which is clicked
- How to add CSS via custom plugin?
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Custom Login Page — wp_signon Headers Already Sent?
- wp_enqueue_style for plugin options page
- Adding Plugin Assets to Header
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- echo get_option in header template
- wp_enqueue_style on template_redirect level?
- Possibility to login without password
- Custom plugin – load enqueue only for this plugin
- dynamic name of the style for wp_enqueue_style
- plugin enqueue style on all pages
- is it possible to hook every page style?
- Dequeue, Unregister, Remove Action – Not Working on Plugin
- Deregister scripts from plugin
- Cannot access WP admin because plugin returns 204
- force jQuery to load in the head
- Edit page header on a custom plugin
- How do i ‘deactivate’ a plugin only on a certain page template?
- how would I include some html in the header section of a wordpress plugin? I get an error
- How do I fill the Home Description?
- Hook for plugin to insert into entry-meta
- sliding/fading header plugin or approach suggestion
- How to make a slider hearder?
- Edit all $wp_scripts at once to $in_footer = false
- Edit all $wp_scripts at once to $in_footer = false
- Load CSS before Theme CSS
- Enqueue css to a third-party plugin template
- Prevent WordPress from sending set-cookie http header
- wordpress plugin add page when activate
- How to add styles to a submenu page?
- wp_set_password() does not work!
- Why can I not deregister my style and script on custom post type?
- How to change the width of certain paragraph or header blocks?
- Modifying server’s response to API endpoint
- How to fix shifting header after installing speed / cache plugins?
- Cannot modify header information – headers already sent during plugin activation
- Debug in WP backend
- How to overlay a webcomic plugin on top of a header image?
- Set Content-Type header in do_parse_request filter
- Primary Menu doesn’t show because of w3 cache
- Insert Plugin on a custom page
- Redirect default login page to a custom page [duplicate]
- How to add php stylesheet to admin section instead of admin_head hook
- Problems with installing and deleting plugins
- WordPress include scripts and style in plugin page
- Change text “My Basket” in woocommerce artificer theme
- WordPress repository forbids me call wp-load.php in non-WordPress file
- plugin’s script and style enqueing not working on Thesis
- How to link that “logged in” in “you must be logged in to post a comment” with custom login page on WordPress?
- How to validate password length in wordpress
- Cannot modify header information – headers already sent by
- Footer option is missing in Customiser
- No Google Analytics code rendered in the header?
- Can’t change login logo & css – older plugin data blocking?
- Gravityforms login form custom redirect if form not submitted
- Frontend Enqueued Files in the Backend