You can load scripts and styles on the login page using the login_enqueue_scripts hook. You can use the same enqueue functions for scripts and styles that you’d use for other pages but they’ll only load on the login page:
function wpse_330353_login_scripts() {
wp_enqueue_script( 'handle', '//example.com/url/to/script.js' );
wp_enqueue_style( 'handle', '//example.com/url/to/style.css' );
}
add_action( 'login_enqueue_scripts', 'wpse_330353_login_scripts' );
None of this would be affected by changing the URL of the login page.
Related Posts:
- Is it bad practice to create own table for a plugin?
- WordPress 5.3 update causes media library file upload to break – Cannot convert undefined or null to object
- What plugins do you commonly install on a fresh WordPress install?
- Publish author posts only with editor approval?
- how to change default icon of custom plugin?
- Any plugin out there that uses WP’s internal image uploader?
- Customizing subject in comment notification e-mails
- All shortcodes not working on custom theme
- How to work with Syntax Highlighter Evolved?
- WordPress Admin is displaying Not Available
- How to pass parameters (data) from plugin PHP to React
- How to remove/hide action links cluttering under specific plugins’ names
- How to create an edit media button for slideshow plugin?
- How to develop a community feature in the dashboard for multiauthor site
- Which hook should be used to validate custom form fields on the login form?
- Change Permalinks Structure to a Sequential Number for Each Post?
- Plugin child folder?
- Short code for Venues
- How would one split content of a post into pages?
- Change wording of admin menu item?
- How to check what plugins used to be on a WordPress installation?
- Form doesn’t submit on second submit call
- What would be the advantages/disadvantages of remote plugin installation?
- How to slice an array using posts_per_page? [closed]
- Show an image in my header.php
- woocommerce payment gateway callback not firing [closed]
- Installing a plugin on a premium site [closed]
- Trying to create a private area custom for each user where they upload images to a server [closed]
- Facebook Messager Plugin
- How to save inputed data in a textbox [EDITED] [duplicate]
- Customization API for plugin development
- User switching only with specific role and return
- Adding Font Awesome to WP Plugin
- How to get my plug-in, wrote in php, to refresh on its own every 5 minutes?
- GeoMashup plugin: how to customize cluster markers / icons? [closed]
- Char limit on custom blog-post form? [closed]
- Is there any plugin for course management? [closed]
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- Which file of wordpress manage plugins functionalities?
- Can I put in Github the code of a abandoned plugin I want to fork?
- How to use login_redirect with a user capability
- Form that generates an ID for the customer
- Passing stored variables to add_filter
- Ajax Plugin Not Echoing Response
- Different custom templates for product category [closed]
- is_rtl returns false while it should return true
- wp_redirect not working on plugin
- dynamic name of the style for wp_enqueue_style
- Delete Media not attached with Any posts
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- Comment Approve – Add custom function when comment is approved
- how to add a comment button to be displayed only for the posts in the home page [closed]
- Disable Checkbox depending on state of another checkbox
- Should meta boxes for specific pages be save in their own plugins?
- How to handle a WordPress blog with articles in different languages?
- Change plugin author after someone leaves the company
- How to implement a plugin featuring foursquare like check-in
- how to render dashboard widgets conditionaly in wordpress admin
- Redirect plugin after form submit or show errors
- Plug-in that shows x number thumbnails from another post
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- How to data add to table when update post wordpress? when we clicked!
- can’t unzip file
- WooCommerce – I want to add functionality of one plugin to another plugin — best approach?
- How to stop Facebook mobile in-app browser cache on WordPress
- ACF Fields are not showing up on Homepage
- WordPress not encoding “é”
- How to create a page with the selected template after activating the plugin
- I enabled debugging but I still get the same message: There has been a critical error on your website
- wp_mail function not working in WordPress Plugin Boilerplate
- How To Remove “All, Publish, Draft and Expired” in Events Dashboard
- Implementing Scrollable Images
- Could someone maybe point me in the direction of a decent tutorial on how to create a wordpress plugin that is compatible with another plugin please?
- Javascript inserted from Plugin pointing to wrong location
- How to setup same post slug for different categories?
- ReferenceError: dokan_assets_url is not defined
- Trending Tags based on post views
- Plugin installation error in wordpress
- get Options value in “external” page
- Non english charcters support for WP Customer Reviews
- What possible reasons can cause my plugin not to be listed in the plugin search in the back-end of wordpress installs?
- how to load a file from a plugin when a url is passed
- Create custom fields on a post
- Is it possible to cancel a post status transition?
- How to use template field in the Event Organiser plugin widget
- Facebook Like Button with NextGen Gallery
- Activate plugins by a theme’s functions.php?
- Notify new post on page
- when i use wp automatic plugin post shows broken images
- iframe not showing on frontend when using a CMB2 field
- Template library for WordPress [closed]
- Is option_active_plugins actually doing anything useful?
- How to add infinite scroll to element products widget
- How can I resolve an error on WordPress after PHP update
- upload_mimes is getting ingored, how to add a new mime type?
- PHP FATAL ERROR
- Remove a specific sitemap from Sitemap_index.xml
- Testing Plugin – Install plugin dependencies in testing enviroment
- Show different page depending on user role
- Email notification when registred user clicks a link/visits page