Community Forums › Forums › Archived Forums › General Discussion › Lifestyle Pro Responsive Header Issues
- This topic has 5 replies, 3 voices, and was last updated 9 years, 6 months ago by Steve@316 Design.
-
AuthorPosts
-
February 21, 2015 at 2:15 pm #141673samwMember
Hi
I have been through all the posts and various approaches to getting a full size Lifestyle Pro Responsive Header Image but am still hitting an issue
I have set the image size to 1140 x 200 in functions an adjusted CSS but cant resolve the media queries for 768 and 1023 screens!! It works fine on all other sizes
If anyone can help with the final CSS tweaks site is http://www.massageinbrighton.co.uk/
Many Thanks
http://www.massageinbrighton.co.uk/February 21, 2015 at 3:12 pm #141675Victor FontModeratorYou set the header image in custom css on the page for .site-title a. Add background-size: 100%; after the image and the image will be responsive.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 22, 2015 at 5:09 am #141729samwMemberFebruary 22, 2015 at 9:35 am #141749Victor FontModeratorYou have a sitetitle a tag in the page itself as inline CSS. If you view the page source in your browser, it is on line 53. This is the code to which I am referring:
<style type="text/css" id="custom-background-css"> body.custom-background { background-image: url('http://www.massageinbrighton.co.uk/wp-content/themes/lifestyle-pro/images/bg.png'); background-repeat: repeat; background-position: top left; background-attachment: scroll; } </style>
You can see by the code block that this is not being enqueued through the correct WordPress process. It appears to have been added manually to your page. This is the wrong place for it because it is outside of the style sheet. I know the fix I mentioned earlier works because I tested it on a responsive test site: http://mattkersley.com/responsive/ or http://www.studiopress.com/responsive/. The fix I tested was to add the background-size dimension after the declaration of the background image url like this:
<style type="text/css" id="custom-background-css"> body.custom-background { background-image: url('http://www.massageinbrighton.co.uk/wp-content/themes/lifestyle-pro/images/bg.png'); background-repeat: repeat; background-position: top left; background-attachment: scroll; background-size: 100%;} </style>
To fix it the right way, this code should be removed from the page header and added to the style sheet where it belongs.
Regards,
Victor
https://victorfont.com/
Call us toll free: 844-VIC-FONT (842-3668)
Have you requested your free website audit yet?February 23, 2015 at 5:28 am #141844samwMemberHi
Thanks for taking a look - I changed the header to be more SEO friendly and it resizes fine using this approach
http://keypresswp.com/full-width-responsive-header-image-lifestyle-pro/
February 23, 2015 at 8:16 am #141862Steve@316 DesignMemberHello Sam, thanks for the solution. On another note, how did you do your navigation? Meaning, at the smaller screen sizes/mobile, it turns into lines. (like I've seen on many other mobile responsive themes)
Thank You, Steve
Steve Adams | 316 Design | 619.726.9923
We live the lifestyles that we promote.™ -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.