The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Place slider in header? (6 posts)

  1. julesjunction
    Posted 3 years ago #

    I'd like to put a slider in the header of the Hatch theme, is this possible and how do I do it?


  2. julesjunction
    Posted 3 years ago #

    woo I've done it yay happy girl here :)

    ...added the responsive slider plugin and then modified home.php removing the image code and replacing with the plugin slider code.

    not sure if that's the best way to do it but it works for me.

  3. menantol
    Posted 3 years ago #

    Oh! Gratz!

    I've been looking for a solution to this the last 3 hours!

    Could you please explain your solution a bit more so that a total noob could understand? (Ie what is the image code and which one is the plugin slider code?)

    I tried replacing this with the both the shortcode and the function but it didn't work...

    <img src="<?php header_image(); ?>" alt="" />

  4. menantol
    Posted 3 years ago #

    Figured it out eventually! Thanks to your previous posts.

  5. metteonline
    Posted 3 years ago #

    [menantol] - so what did you do? which code did you replace with what ??
    I've tried to replace various in home.php as well, but with no luck. Cheers!

  6. menantol
    Posted 3 years ago #

    I can't really remember but this is what the code looks like in my home.php. See if it helps...

    <div id="header-banner" role="banner">

    <?php // Check to see if the header image has been removed
    $header_image = get_header_image();

    if ( ! empty( $header_image ) ) : ?>

    <?php echo do_shortcode( '[responsive_slider]' ); ?>

    <?php endif; // end check for removed header image ?>


Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic