Support » Theme: LeatherDiary » Change Header image to a Cycloneslider slideshow

Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    this feature is available only in the Premium version where is a specific widget area called “Homepage slideshow”. In the Free version, you will need to replace the following code in “header.php” with your slideshow code:

    <?php if ( get_header_image() != '' ) { ?>
        <img class="header-image" src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" />
    <?php } ?>

    Best regards,
    Tomas Toman

    Dear Tomas:
    Thanks for getting back to me. If my slideshow code is “[cycloneslider id=”hilux-revo-double-cab”]” where would I place this in the code?

    Theme Author TT Themes

    (@tomastoman)

    Please delete the above mentioned code in “header.php” and replace it with this code:

    <?php if( function_exists('cyclone_slider') ) cyclone_slider('hilux-revo-double-cab'); ?>

    To ensure that your modifications are preserved when you update the LeatherDiary theme, I recommend you to create a child theme instead of modifying the original theme.

    Best regards,
    Tomas Toman

    Dear Thomas:
    The site is now not loading at all when I replace the following code:
    <?php if ( is_home() || is_front_page() ) { ?>

    <?php if ( get_header_image() != ” ) { ?>

    <img class=”header-image” src=”<?php header_image(); ?>” alt=”<?php bloginfo( ‘name’ ); ?>” />

    <?php } ?>

    with this one:
    <?php if ( is_home() || is_front_page() ) { ?>

    <?php if( function_exists(‘cyclone_slider’) ) cyclone_slider(‘hilux-revo-double-cab’); ?>
    <?php } ?>

    Theme Author TT Themes

    (@tomastoman)

    Hi,

    please replace only this code:

    <?php if ( get_header_image() != '' ) { ?>
        <img class="header-image" src="<?php header_image(); ?>" alt="<?php bloginfo( 'name' ); ?>" />
    <?php } ?>

    The first line <?php if ( is_home() || is_front_page() ) { ?> should stay preserved.

    Best regards,
    Tomas Toman

    Dear Thomas:
    Thanks figured it out, was adding <?php } ?> to the end of the code, removed that code and it worked. Thanks for your help.
    Thanks,
    Regards,
    John

    Theme Author TT Themes

    (@tomastoman)

    You are welcome!

    Best regards,
    Tomas Toman

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change Header image to a Cycloneslider slideshow’ is closed to new replies.