Community Forums › Forums › Archived Forums › Design Tips and Tricks › Magazine – Header – Responsive –
Tagged: header, magazine, responsive
- This topic has 5 replies, 3 voices, and was last updated 10 years, 2 months ago by
Anita.
-
AuthorPosts
-
July 24, 2013 at 1:56 pm #52305
gwolf70
MemberHi,
I have installed Genesis Responsive Header and I uploaded a header with the recommended sizes: 960, 768, 480, 320 and 240.
Genesis responsible slider is located at header right widget with 960px by 400px
Problem:
Not showing at 240, 320, 480 and 768. (basically header is not mobile responsive)Site: http://www.danielsalasrealestate.com
Any clues?
Thanks a lot!
http://www.danielsalasrealestate.comJuly 24, 2013 at 2:15 pm #52315Anita
KeymasterThe theme and header are mobile responsive. The header right widget area was not configured to be used for a slider. Your content is not responsive and it's in an inappropriate widget area.
Love coffee, chocolate and my Bella!
July 24, 2013 at 3:29 pm #52334Nile Flores
MemberJust noticed, your DOCTYPE should be changed to suit the HTML5 for media queries.
And from anitac's comment, you would have to write in your css to make that widget area responsive. It is not necessarily "inappropriate", but it needs to be written correctly in your media query css.
I help people rock out their sites! – Blondish.net
July 24, 2013 at 3:49 pm #52345gwolf70
MemberYou're right header widget area is not responsive. But Genesis Responsive Slider is required in all the pages, so I found out a solution:
1. Add Header area
1. Register a widget area at genesis_header
2. Unregister header widget area, remove header title and description
3. Add CSS.CODE:
1. Add header area:
/** Add header area logo */
add_action( 'genesis_header', 'header_area_logo' );
function header_area_logo() {
if ( is_active_sidebar( 'header-area' ) ) {
echo '<div class="header-area">';
dynamic_sidebar( 'header-area' );
echo '</div><!-- end .header-area -->';
}
}2. Register a widget area:
//* Remove the site title
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
//* Remove the site description
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
//* Remove the header right widget area
unregister_sidebar( 'header-right' );3. ADD CSS:
#header .header-area {
padding-top:125px;
margin-bottom:10px;
margin-right: auto;
margin-left: auto;
width: 960px;
height: 400px;
}4. Comment or remove this CSS:
.widget-area {
float: right;
padding: 5px 0 0;
width: 180px;
}Now Genesis Responsive Slider is showing in mobile devices BUT it cut off part of the images when resolution is below 1024px.
Any clue?
July 24, 2013 at 5:05 pm #52371gwolf70
MemberOK I found the solution… EASY:
#header .header-area {
padding-top:125px;
margin-bottom:10px;
margin-right: auto;
margin-left: auto;
width: 100%; (INSTEAD OF 960PX)
height: 100%; (INSTEAD OF 400PX)
}No it's working perfect! Hope this solution helps.
July 24, 2013 at 5:12 pm #52372Anita
KeymasterJust to clarify my statement about "inappropriate" - that area wasn't designed to hold a slider in the original theme. Most people add an additional widget area for the slider so that they can keep the header right widget area for something such as telephone number, social media buttons, banner ads, etc., etc.
Love coffee, chocolate and my Bella!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.