WordPress.org

Making WordPress.org

Changeset 9


Ignore:
Timestamp:
05/20/13 16:25:21 (5 years ago)
Author:
nacin
Message:

WP.org P2 child theme: Enqueue CSS on our own so we can bump CSS versions.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/functions.php

    r8 r9  
    11<?php 
    22 
    3 add_action( 'after_setup_theme', 'wporg_p2_after_setup_theme' ); 
     3add_action( 'after_setup_theme', 'wporg_p2_after_setup_theme', 11 ); 
    44function wporg_p2_after_setup_theme() { 
    55    register_nav_menu( 'wporg_header_subsite_nav', 'WP.org Header Sub-Navigation' ); 
    66} 
     7 
     8add_action( 'wp_enqueue_scripts', 'wporg_p2_enqueue_scripts', 11 ); 
     9function wporg_p2_enqueue_scripts() { 
     10    wp_deregister_style( 'p2' ); 
     11    wp_register_style( 'p2', get_template_directory_uri() . '/style.css' ); 
     12    wp_enqueue_style( 'wporg-p2', get_stylesheet_uri(), array( 'p2' ), '2013-05-20' ); 
     13} 
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-p2/style.css

    r8 r9  
    44Description: Child theme of p2, with modifications specifically for make.wordpress.org p2 blogs. 
    55*/ 
    6 @import url('../../p2/style.css'); 
    76 
    87.post-type-archive-handbook .postcontent, 
Note: See TracChangeset for help on using the changeset viewer.