Created
July 8, 2018 11:57
-
-
Save BinaryMoon/42d8b937e20ac5526385872bf7129b16 to your computer and use it in GitHub Desktop.
Change Mimbo Pro so that the header can be a custom height
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
* } | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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