Making WordPress.org


Ignore:
Timestamp:
07/04/2015 10:01:00 PM (11 years ago)
Author:
ocean90
Message:

Forums theme: Enqueue style.css from theme root.

  • Enqueue forum-wp4-style after bb-base.
  • Add .col-12 wrapper to fix missing left/right margins and update width of .content and .sidebar wrappers.
  • Add some space between sidebar items.
  • Remove dashicon from #headline.

see #376.

File:
1 edited

Legend:

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

    r1579 r1702  
    2121 */
    2222function wporg_support_scripts() {
    23         wp_enqueue_style( 'forum-wp4-style', get_template_directory_uri() . '/css/forum-wp4.css' );
    24         wp_enqueue_style( 'bb-base', '//bbpress.org/wp-content/themes/bb-base/style.css?ver=20150216d' );
     23
     24        wp_register_style(
     25                'bb-base',
     26                '//bbpress.org/wp-content/themes/bb-base/style.css',
     27                array(),
     28                '20150216d'
     29        );
     30
     31        wp_register_style(
     32                'forum-wp4-style',
     33                get_template_directory_uri() . '/style.css',
     34                array( 'bb-base' ),
     35                '20150704'
     36        );
     37
     38        wp_enqueue_style( 'forum-wp4-style' );
    2539}
    2640add_action( 'wp_enqueue_scripts', 'wporg_support_scripts' );
Note: See TracChangeset for help on using the changeset viewer.