Making WordPress.org

Ticket #269: 269.diff

File 269.diff, 1.1 KB (added by iandunn, 11 years ago)
  • functions.php

     
    5353        }
    5454
    5555        return apply_filters( 'cats_with_count', $before . join( $sep, $cat_links ) . $after, $post );
    56 }
    57  No newline at end of file
     56}
     57
     58// Add each site's slug to the body class, so that CSS rules can target specific sites.
     59add_filter( 'body_class', 'wporg_add_site_slug_to_body_class' );
     60function wporg_add_site_slug_to_body_class( $classes ) {
     61        $classes[] = 'site-' . str_replace( '/', '', parse_url( site_url(), PHP_URL_PATH ) );
     62       
     63        return $classes;
     64}
  • style.css

     
    211211        margin: 10px auto -10px;
    212212        display: block;
    213213}
     214
     215/*- Summit Specific Styles ----------*/
     216
     217/* Fix alignment of images on Sponsors page by making sure the p containers grow to contain the floated images.
     218 * Otherwise the paragraphs don't block across the entire page */
     219body.site-summit.page-id-55 #content-55 p {
     220        overflow: auto;
     221}