• I’ve added add_filter( 'twentyeleven_header_image_width', 960);

    and tried

    add_filter( 'twentyeleven_header_image_width', ask_header_width);
    	function ask_header_width($param) {
    		return 960;
    	}

    to my add_action( 'widgets_init', 'ask_widgets_init' );

    and check by echoing that my init is called after the parent theme and it is… so why is the add_filter not overwriting the default width of 1000 in the example above?

Viewing 1 replies (of 1 total)
  • Thread Starter mtpultz

    (@mtpultz)

    never mind figure it out, I was wrapping the add_filter and placing it in an action when all I had to do was drop it into my function.php as is for it to fill in the width and height in the parent theme.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding add_filter not changing twenty eleven custom header width and height’ is closed to new replies.