-
-
Save About2git/910ee287b99e8f579d21 to your computer and use it in GitHub Desktop.
Using a wide header in Magazine Pro
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
| //* Add support for custom header | |
| add_theme_support( 'custom-header', array( | |
| 'default-text-color' => '000000', | |
| 'header-selector' => '.site-title a', | |
| 'header-text' => false, | |
| 'height' => 90, | |
| 'width' => 380, | |
| ) ); |
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
| //* Add support for custom header | |
| add_theme_support( 'custom-header', array( | |
| 'default-text-color' => '000000', | |
| 'header-selector' => '.site-title a', | |
| 'header-text' => false, | |
| // 'height' => 90, | |
| // 'width' => 380, | |
| 'height' => 200, | |
| 'width' => 1140, | |
| ) ); |
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
| //* Remove the header right widget area | |
| unregister_sidebar( 'header-right' ); |
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
| .title-area { | |
| width: 100%; | |
| } | |
| .header-image .site-title a { | |
| min-height: 200px; /* Height of header image */ | |
| } | |
| @media only screen and (max-width: 1024px) { | |
| .header-image .site-header .title-area, .header-image .site-header .widget-area { | |
| padding: 2rem 0; | |
| } | |
| } | |
| @media only screen and (max-width: 768px) { | |
| .header-image .site-title a { | |
| min-height: 121px; | |
| } | |
| } | |
| @media only screen and (max-width: 568px) { | |
| .header-image .site-title a { | |
| min-height: 100px; | |
| } | |
| } | |
| @media only screen and (max-width: 480px) { | |
| .header-image .site-title a { | |
| min-height: 84px; | |
| } | |
| } | |
| @media only screen and (max-width: 320px) { | |
| .header-image .site-title a { | |
| min-height: 56px; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment