Changeset 2973720
- Timestamp:
- 10/02/2023 08:37:35 AM (18 months ago)
- Location:
- fcp-first-screen-css/trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
fcp-first-screen-css/trunk/README.md
r2973591 r2973720 1 1 # First Screen CSS & Settings 2 2 3 Insert the inline CSS into your website's head tag. You can choose to inline, defer, or de-register existing styles and scripts. Additionally, you can add custom non-inline styles. Apply everything individually, by post-type, or for archives.3 This is a professional tool to manipulate enqueued styles and scripts on your website and add custom CSS to first screen and not first screen optionally. Use it to improve your Core Web Vitals score or just add custom styling. 4 4 5 5 ## Features 6 6 7 * Full control overyour website's CSS7 * Control your website's CSS 8 8 * Apply changes to individual posts/pages/custom post types 9 9 * Apply changes to all posts of a specific type -
fcp-first-screen-css/trunk/assets/codemirror/init.js
r2934071 r2973720 3 3 const add_editor = textarea => { 4 4 5 const placeholder = `/* enter your css here */ \n* {\n border: 1px dotted red;\n box-sizing: border-box;\n}`;5 const placeholder = `/* enter your css here */`;//+`\n* {\n border: 1px dotted red;\n box-sizing: border-box;\n}`; 6 6 const $editor = $( textarea ); 7 7 -
fcp-first-screen-css/trunk/first-screen.php
r2973591 r2973720 2 2 /* 3 3 Plugin Name: First Screen CSS & Settings 4 Description: Insert the inline CSS into your website's head tag. You can choose to inline, defer, or de-register existing styles and scripts. Additionally, you can add custom non-inline styles. Apply everything individually, by post-type, or for archives.5 Version: 1.6 4 Description: This is a professional tool to manipulate enqueued styles and scripts on your website and add custom CSS to first screen and not first screen optionally. Use it to improve your Core Web Vitals score or just add custom styling. 5 Version: 1.6.1 6 6 Requires at least: 5.8 7 7 Tested up to: 6.3 … … 16 16 defined( 'ABSPATH' ) || exit; 17 17 18 define( 'FCPFSC_DEV', true );18 define( 'FCPFSC_DEV', false ); 19 19 define( 'FCPFSC_VER', get_file_data( __FILE__, [ 'ver' => 'Version' ] )[ 'ver' ] . ( FCPFSC_DEV ? time() : '' ) ); 20 20 … … 25 25 define( 'FCPFSC_URL', plugin_dir_url( __FILE__ ) ); 26 26 define( 'FCPFSC_DIR', plugin_dir_path( __FILE__ ) ); 27 define( 'FCPFSC_BSN', plugin_basename(__FILE__) ); 27 28 28 29 define( 'FCPFSC_REST_URL', wp_upload_dir()['baseurl'] . '/' . basename( FCPFSC_DIR ) ); -
fcp-first-screen-css/trunk/inc/admin/main.php
r2973591 r2973720 66 66 register_post_type( FCPFSC_SLUG, $args ); 67 67 }); 68 69 // link the new css from the plugins list 70 add_filter( 'plugin_action_links_'.FCPFSC_BSN, function($links) { 71 $settings_link = '<a href="' . esc_url( admin_url( 'post-new.php?post_type='.FCPFSC_SLUG ) ) . '">Add new Settings</a>'; 72 array_unshift( $links, $settings_link ); 73 return $links; 74 }); -
fcp-first-screen-css/trunk/readme.txt
r2973591 r2973720 1 === F CP First Screen CSS===1 === First Screen CSS & Settings === 2 2 Contributors: Firmcatalyst 3 Tags: inline, css, firstscreen, style, web vitals, cls, fcp, defer, dequeue, deregister3 Tags: css, first screen, style, web vitals, inline, defer, deregister 4 4 Requires at least: 5.8 5 5 Tested up to: 6.3 6 6 Requires PHP: 7.4 7 Stable tag: 1.6 7 Stable tag: 1.6.1 8 8 Author: Vadim Volkov, Firmcatalyst 9 9 Author URI: https://firmcatalyst.com … … 15 15 == Description == 16 16 17 Insert the inline CSS into your website's head tag. You can choose to inline, defer, or de-register existing styles and scripts. Additionally, you can add custom non-inline styles. Apply everything individually, by post-type, or for archives.17 This is a professional tool to manipulate enqueued styles and scripts on your website and add custom CSS to first screen and not first screen optionally. Use it to improve your Core Web Vitals score or just add custom styling. 18 18 19 19 = Features = 20 20 21 * Full control overyour website's CSS21 * Control your website's CSS 22 22 * Apply changes to individual posts/pages/custom post types 23 23 * Apply changes to all posts of a specific type 24 24 * Apply changes to the blog or any post-type archive 25 25 * Inline, defer, or de-register Styles or JS 26 * Edit CSS easily with the CodeMirror visual editor 26 27 * Automatic CSS minification 27 * Edit CSS easily with the CodeMirror visual editor28 28 29 29 = Demo =
Note: See TracChangeset
for help on using the changeset viewer.