Support » Theme: Twenty Twelve » Problem with overriding parent theme functions

  • Resolved Ruude4s

    (@yakti-ruud)


    Hi all,

    I’m creating a child theme for 2012 and need to adjust 2012’s body_class function as declared in 2012’s functions.php. I’ve tried a couple of solutions, but without success. My last try was this:

    function adjust_twentytwelve_body_class( $classes ) {
    	// the adjusted function
    }
    remove_filter( 'body_class', 'twentytwelve_body_class' );
    add_filter( 'body_class', 'adjust_twentytwelve_body_class' );

    Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with overriding parent theme functions’ is closed to new replies.