• I want to replace the frontpage image with a slider.

    I already tested a basic slider but unfortunalety it isnt fullscreen.

    Amyone has any recommendation which could be a good basic slider to use?

    Or is it maybe douable to adjust the
    Theme so more than 1 image can be used for the frontpage? I see there is this rotation option for images on the custumize page but it only just gets one image per time.
    At least for me.

    Looking forward to hear additional feedback for this option.

    Thanks!

    • This topic was modified 7 years, 11 months ago by project13x.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter project13x

    (@project13x)

    I also posted this on another topic. but this is what i got so far.

    I have used ultimate slider and placed it in header-image.php file and disabled the the_custom_header_markup.

    <div class=”custom-header”>
    <div class=”custom-header-media”>
    <?php //the_custom_header_markup(); ?>
    <?php echo do_shortcode(“[ultimate-slider]”); ?>

    </div>
    </div><!– .custom-header –>

    At first i thought it was working as it didn’t show anything on my other pages. However checking it on mobile i notice it still loads the slider and was also in the source code.

    Any thoughts where and how to place it so it’s only visible for the front page?

    Thread Starter project13x

    (@project13x)

    so i added this.

    .custom-header {
    position: relative;
    display: none;
    }

    Now the slider is only visible on the frontpage. However it’s still there on the subpages. altough not visible but loading in the back.

    So there should be a better place to put the slider i guess

    Hello,
    I just got it running by changing the following code in the header.php:

    I changed this:
    <?php get_template_part( ‘template-parts/header/header’, ‘image’ ); ?>

    to that:
    <?php get_template_part( ‘template-parts/header’, ” ); if(twentyseventeen_is_frontpage()) { echo do_shortcode(“[slider id=’1′]”); } ?>

    ….but this is not really working, because all the other pages have no image anymore on top. Still trying….

    I could manage to get it running:

    Open header-image.php under template-parts/header and change

    from:
    <?php the_custom_header_markup(); ?>

    to:
    <?php if ( twentyseventeen_is_frontpage()) {
    echo do_shortcode(“[slider id=’1′]”);
    }
    else the_custom_header_markup(); ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Slider homepage’ is closed to new replies.