Skip to content

Instantly share code, notes, and snippets.

@BinaryMoon
Created July 8, 2018 11:57
Show Gist options
  • Save BinaryMoon/42d8b937e20ac5526385872bf7129b16 to your computer and use it in GitHub Desktop.
Save BinaryMoon/42d8b937e20ac5526385872bf7129b16 to your computer and use it in GitHub Desktop.
Change Mimbo Pro so that the header can be a custom height
<?php
/**
* Plugin Name: Change Mimbo Pro Header Size
* Plugin URI: https://prothemedesign.com
* Description: Change the height of the header image on Mimbo Pro.
* Author: Ben Gillbanks
* Version: 1.0
* Author URI: https://prothemedesign.com
* Text Domain: mimbopro
*/
function mimbopro_custom_header() {
global $_wp_theme_features;
if ( $_wp_theme_features['custom-header'] ) {
$_wp_theme_features['custom-header'][0]['flex-height'] = true;
}
}
add_action( 'after_setup_theme', 'mimbopro_custom_header', 100 );
/**
* Needs some custom css added to the additional CSS section of the customizer.
*
* #masthead {
* min-height:400px;
* }
*/
@Clifford12
Copy link

Dear Ben,

Thank you for taking the time to help me.

I appreciate the plugin that you made in such a short time.

Kindest regards,

Clifford

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment