WordPress.org

Plugin Directory

Changeset 613718


Ignore:
Timestamp:
10/17/12 19:04:58 (18 months ago)
Author:
cfinke
Message:

Mobile Theme: Adds a 'mobile-theme' class to the body tag.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jetpack/trunk/modules/minileven/theme/pub/minileven/inc/tweaks.php

    r603288 r613718  
    5757} 
    5858add_filter( 'wp_page_menu_args', 'minileven_page_menu_args' ); 
     59 
     60/** 
     61 * Adds a custom class to the array of body classes, to allow Minileven to be targeted with Custom CSS. 
     62 */ 
     63function minileven_body_classes( $classes ) { 
     64    $classes[] = 'mobile-theme'; 
     65    return $classes; 
     66} 
     67add_filter( 'body_class', 'minileven_body_classes' ); 
Note: See TracChangeset for help on using the changeset viewer.