Changeset 14031
- Timestamp:
- 09/09/2024 04:54:04 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/functions.php
r14025 r14031 32 32 33 33 /** 34 * Enqueue scripts and styles. 35 * 36 * Enqueue existing wordpress.org/support stylesheets 37 * @link https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/style 38 */ 39 function wporg_breathe_scripts() { 34 * Enqueue styles. 35 */ 36 function wporg_breathe_styles() { 40 37 wp_dequeue_style( 'wp4-styles' ); 38 wp_dequeue_style( 'breathe-style' ); 39 wp_enqueue_style( 'p2-breathe', get_template_directory_uri() . '/style.css' ); 41 40 42 41 wp_enqueue_style( … … 46 45 filemtime( get_theme_root() . '/wporg-parent-2021/build/style.css' ) 47 46 ); 47 48 48 wp_enqueue_style( 49 49 'wporg-parent-2021-block-styles', … … 53 53 ); 54 54 55 wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), filemtime( __DIR__ . '/style.css' ) ); 56 55 57 // Preload the heading font(s). 56 58 if ( is_callable( 'global_fonts_preload' ) ) { … … 61 63 } 62 64 } 63 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\wporg_breathe_s cripts');65 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\wporg_breathe_styles', 11 ); 64 66 65 67 /** … … 269 271 bloginfo( 'name' ); 270 272 } 271 272 function styles() {273 wp_dequeue_style( 'breathe-style' );274 wp_enqueue_style( 'p2-breathe', get_template_directory_uri() . '/style.css' );275 276 wp_enqueue_style( 'wporg-breathe', get_stylesheet_uri(), array( 'p2-breathe' ), filemtime( __DIR__ . '/style.css' ) );277 }278 add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\styles', 11 );279 273 280 274 function scripts() {
Note: See TracChangeset
for help on using the changeset viewer.