WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. julesjunction
    Member
    Posted 1 year ago #

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

    http://wordpress.org/extend/themes/hatch/

  2. julesjunction
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Figured it out eventually! Thanks to your previous posts.

  5. metteonline
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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 ?>

    </div>

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags