Magazine – Header – Responsive -

Community Forums Forums Design Tips and Tricks Magazine – Header – Responsive -

This topic is: resolved

This topic contains 5 replies, has 3 voices, and was last updated by  anitac 1 year ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #52305

    gwolf70
    Participant
    Post count: 7

    Hi,

    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.com
    #52315

    anitac
    Participant
    Post count: 7041

    The 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.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #52334

    Nile Flores
    Participant
    Post count: 29

    Just 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

    #52345

    gwolf70
    Participant
    Post count: 7

    You’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?

    #52371

    gwolf70
    Participant
    Post count: 7

    OK 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.

    #52372

    anitac
    Participant
    Post count: 7041

    Just 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.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.