Bushwick theme -how to make the vertical header a fixed size
-
Trying to understand how the new (as of wp 3.4) custom-header.php is supposed to work.
I have been looking for a vertical header banner style theme for a long time.
Bushwick fits my needs but by default it resizes the vertical header image whenever the browser windows is resized.
custom-header.php uses the function
‘bushwick_custom_header_setup()’ which has args ‘flex-height’ and ‘flex-width’ . One doc says these args are optional and if they are omitted then the image will be fixed.
Removing them in Bushwick doesn’t fix the header image in my test site the vertical banner image still resizes when the user resizes the browser window.
Am I editing the wrong function? …and if so which theme function can I alter to fix the vertical banner image?The blog I need help with is: (visible only to logged in users)
-
I think you can solve this with CSS.
The Bushwick theme uses “background-size: cover” to make the background image scale to fit the the container space so as much of the area is covered as possible.
You can turn that off by adding a rule like this:
.site-header { background-size: auto; }Note that you may need to make some other adjustments depending on the size of your header image and your exact end goal.
I see that you are using WordPress, but your site is not hosted here at WordPress.com. Please post further questions about Bushwick in the WordPress.org forums at http://wordpress.org/support/theme/bushwick because it keeps things less confusing for WordPress.com users who cannot edit php files like the ones you referenced earlier.
- The topic ‘Bushwick theme -how to make the vertical header a fixed size’ is closed to new replies.