Plugin Directory

Changeset 3290004


Ignore:
Timestamp:
05/08/2025 03:53:45 PM (8 months ago)
Author:
vortica
Message:

Allows to Custom CSS Edition in Backoffice and see the changes reflected live

Location:
custom-css-to-external-file/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-css-to-external-file/trunk/custom-css-to-external-file.php

    r3264384 r3290004  
    44Plugin URI: https://vortica.net/custom-css-to-external-file
    55Description: Moves the Custom CSS from the WordPress Customizer to an external file and includes it in the site's head to improve performance and persistence.
    6 Version: 1.0
     6Version: 2.0
    77Author: Vortica
    88Author URI: https://vortica.net/
     
    4343    if (!$is_active) return;
    4444
    45     // Remove inline output from WordPress
    46     remove_action('wp_head', 'wp_custom_css_cb', 101);
     45    // Only remove inline CSS when not in Customizer live preview
     46    if ( ! is_customize_preview() ) {
     47        remove_action('wp_head', 'wp_custom_css_cb', 101);
     48    }
    4749
    4850    $upload_dir = wp_upload_dir();
  • custom-css-to-external-file/trunk/readme.txt

    r3264384 r3290004  
    33Tags: css, customizer, performance, optimization
    44Requires at least: 5.0
    5 Tested up to: 6.7
     5Tested up to: 6.8.1
    66Requires PHP: 7.0
    77Stable tag: 1.0
     
    3232= 1.0 =
    3333* Initial release.
     34= 2.0 =
     35* Allows to Custom CSS Edition in Backoffice and see the changes reflected live
     36
    3437
    3538== Frequently Asked Questions ==
Note: See TracChangeset for help on using the changeset viewer.