Overview

Use this tool to create custom code for Styles Registration with wp_register_style() function.

Usage

  • Fill in the user-friendly form.
  • Click the “Update Code” button.
  • Copy the code to your project.
  • Or save it as a snippet and share with the community.

Examples

If you are still learning how to use this tool, check out the following examples:

The function used in the code.
Where to enqueue? Front end, login or admin.
Name used in the code as a stylesheet handle. URL to the style.
Commas separated list of stylesheet handles to load before this style. Stylesheets version number.
The stylesheet media type. i.e. 'all', 'print', 'tv', 'projection'.
Deregister the style first. Enqueue the style.
Name used in the code as a stylesheet handle. URL to the style.
Commas separated list of stylesheet handles to load before this style. Stylesheets version number.
The stylesheet media type. i.e. 'all', 'print', 'tv', 'projection'.
Deregister the style first. Enqueue the style.
Name used in the code as a stylesheet handle. URL to the style.
Commas separated list of stylesheet handles to load before this style. Stylesheets version number.
The stylesheet media type. i.e. 'all', 'print', 'tv', 'projection'.
Deregister the style first. Enqueue the style.

  Save Snippet
// Register Style
function custom_styles() {

}

// Hook into the 'wp_enqueue_scripts' action
add_action( 'wp_enqueue_scripts', 'custom_styles' );