• Resolved david221

    (@david221)


    I’ve put a Meta Slider on my home page, but now I want to try if I can fit it across the whole page at 100%. I’m not sure how to go about doing it though. Do I need to do something in the header or functions.php page first?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter david221

    (@david221)

    I got it half working. This is what I’ve added in my functions.php page:

    /*———————————————————————————–*/
    // Opening #header
    /*———————————————————————————–*/

    if ( !function_exists( ‘skeleton_header_open’ ) ) {

    function skeleton_header_open() {
    echo “<div id=\”wrap\” class=\”container\”>”;
    echo do_shortcode(“[metaslider id=21 percentwidth=100 restrict_to=home]”);
    echo “<div id=\”header\” class=\”sixteen columns\”>\n<div class=\”inner\”>\n”;
    }
    add_action(‘skeleton_header’,’skeleton_header_open’, 2);

    }

    It’s slightly bigger than usual, but it’s still not at 100%.

    Thread Starter david221

    (@david221)

    I worked it out:

    /*———————————————————————————–*/
    // Opening #header
    /*———————————————————————————–*/

    if ( !function_exists( ‘skeleton_header_open’ ) ) {

    function skeleton_header_open() {
    if( is_front_page() ) {
    echo do_shortcode( ‘[metaslider id=”21″]’ );
    }
    echo “<div id=\”header\” class=\”sixteen columns\”>\n<div class=\”inner\”>\n<div class=\”container\”>\n”;
    }
    add_action(‘skeleton_header’,’skeleton_header_open’, 2);

    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I make a full width Meta Slider fit across the home page?’ is closed to new replies.