File Editor
Directories:
.. (Back)
carousel
cloudflare-analytics
comment-likes
comments
custom-css
custom-post-types
geo-location
google-fonts
gravatar
infinite-scroll
likes
markdown
masterbar
memberships
photon-cdn
plugin-search
post-by-email
related-posts
scan
seo-tools
sharedaddy
shortcodes
simple-payments
site-icon
sitemaps
sso
stats
subscriptions
theme-tools
tiled-gallery
verification-tools
videopress
widget-visibility
widgets
woocommerce-analytics
wordads
wpcom-tos
Files:
blaze.php
carousel.php
comment-likes.php
comments.php
contact-form.php
copy-post.php
custom-content-types.php
custom-css.php
geo-location.php
google-fonts.php
gravatar-hovercards.php
infinite-scroll.php
json-api.php
latex.php
likes.php
markdown.php
masterbar.php
module-extras.php
module-headings.php
module-info.php
monitor.php
notes.php
photon-cdn.php
photon.php
plugin-search.php
post-by-email.php
post-list.php
protect.php
publicize.php
related-posts.php
search.php
seo-tools.php
sharedaddy.php
shortcodes.php
shortlinks.php
sitemaps.php
sso.php
stats.php
subscriptions.php
theme-tools.php
tiled-gallery.php
vaultpress.php
verification-tools.php
videopress.php
waf.php
widget-visibility.php
widgets.php
woocommerce-analytics.php
wordads.php
wpgroho.js
Create New File
Create
Edit File: custom-css.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * Module Name: Custom CSS * Module Description: Adds options for CSS preprocessor use, disabling the theme's CSS, or custom image width. * Sort Order: 2 * First Introduced: 1.7 * Requires Connection: No * Auto Activate: No * Module Tags: Appearance * Feature: Appearance * Additional Search Queries: css, customize, custom, style, editor, less, sass, preprocessor, font, mobile, appearance, theme, stylesheet */ if ( ! function_exists( 'jetpack_load_custom_css' ) ) { /** * Load custom CSS */ function jetpack_load_custom_css() { include_once __DIR__ . '/custom-css/custom-css/preprocessors.php'; include_once __DIR__ . '/custom-css/custom-css.php'; } } if ( ! function_exists( 'custom_css_loaded' ) ) { /** * Enable CSS module. */ function custom_css_loaded() { $message = sprintf( // translators: %s is a link to the WordPress.org documentation. __( 'Jetpack no longer supports Custom CSS. Read the WordPress.org documentation to learn how to apply custom styles to your site: %s', 'jetpack' ), 'https://wordpress.org/documentation/article/styles-overview/#applying-custom-css' ); _deprecated_hook( 'custom_css_loaded', 'jetpack-13.5', 'WordPress Custom CSS', esc_html( $message ) ); Jetpack::enable_module_configurable( __FILE__ ); add_filter( 'jetpack_module_configuration_url_custom-css', 'jetpack_custom_css_configuration_url' ); } } if ( ! function_exists( 'jetpack_custom_css_configuration_url' ) ) { /** * Overrides default configuration url * * @uses admin_url * * @param string $default_url - the default URL. * @return string module settings URL */ function jetpack_custom_css_configuration_url( $default_url ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable return Jetpack_Custom_CSS_Enhancements::customizer_link( array( 'return_url' => wp_get_referer() ) ); } } // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores if ( ! apply_filters( 'jetpack_module_configurable_custom-css', null ) ) { add_action( 'jetpack_modules_loaded', 'custom_css_loaded' ); jetpack_load_custom_css(); }
Save Changes
Rename File
Rename