Change Header image to a Cycloneslider slideshow
-
Hello, I have a site in Leather Diary. Thanks for this great theme. The site is http://toyota-hilux-revo.org/. I would like to replace the header image with a Cyclone Slider slideshow. Please let me know if that is possible.
-
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 TomanDear 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?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 TomanDear 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 } ?>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 TomanDear 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,
JohnYou are welcome!
Best regards,
Tomas Toman
- The topic ‘Change Header image to a Cycloneslider slideshow’ is closed to new replies.