Community Forums › Forums › Archived Forums › General Discussion › Make prose header image responsive
Tagged: Prose, responsive header
- This topic has 3 replies, 4 voices, and was last updated 10 years, 4 months ago by
masajartemis.
-
AuthorPosts
-
March 24, 2015 at 5:07 am #145438
munguti
Memberprose header image is not responsive when uploaded. Theme developers should make the header responsive like the entire theme
http://www.christiantruthcenter.com/June 18, 2015 at 3:37 pm #156708RKBlake
MemberI got Prose to use responsive headers by uploading 4 images for 768, 480, 320, 240 to my Media Library. Then I added the code below to Geneisis Theme Settings -> Header and Footer Scripts under Header.
You'll need to edit the code below to change the url of each image to reflect your domain/url.
<style type="text/css">@media only screen and (max-width: 768px){ #header{ background-image:none!important; height:auto!important;min-height:0!important;width:100%; } #title-area{ background:url(http://yourdomain.com/wp-content/uploads/2015/06/blueheader768.jpg)no-repeat center !important;background-size:contain!important;width:100%!important;height:98px!important; } #title, #title a { background: none !important; } }@media only screen and (max-width: 480px){ #header{ background-image:none!important; height:auto!important;min-height:0!important;width:100%; } #title-area{ background:url(http://yourdomain.com/wp-content/uploads/2015/06/blueheader480.jpg)no-repeat center !important;background-size:contain!important;width:100%!important;height:61px!important; } #title, #title a { background: none !important; } }@media only screen and (max-width: 320px){ #header{ background-image:none!important; height:auto!important;min-height:0!important;width:100%; } #title-area{ background:url(http://yourdomain.com/wp-content/uploads/2015/06/blueheader320.jpg)no-repeat center !important;background-size:contain!important;width:100%!important;height:41px!important; } #title, #title a { background: none !important; } }@media only screen and (max-width: 240px){ #header{ background-image:none!important; height:auto!important;min-height:0!important;width:100%; } #title-area{ background:url(http://yourdomain.com/wp-content/uploads/2015/06/blueheader240.jpg)no-repeat center !important;background-size:contain!important;width:100%!important;height:31px!important; } #title, #title a { background: none !important; } }</style>
Hope that helps.
August 3, 2015 at 12:03 am #161208Liz
ParticipantI have used this code on several sites to get responsive header images. I learned about it after I have designed a Prose site (where I used the responsive header plugin), just haven't prioritized making the change to Sridhar's code.
How to use an inline logo instead of a background image in Genesis
August 3, 2015 at 5:09 am #161226masajartemis
Member -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.