Raindrops Header Slideshow
-
Hi I’ve been designing a website with the raindrops theme for a client and he wants the header image to be replaced by a slideshow of images (timed slider, not a manual slider).
However, I’ve been having trouble editing the code to put in the slideshow. Please help!
My website is http://www.mgsaanz.com
The plugin is Content Slide Plugin and they want me to put the following code into the header.php file:
<?php if(function_exists('wp_content_slider')) { wp_content_slider(); } ?>
Where do I put this?
-
Hi PierottiMedia
If you want to customize the theme, in order to customize is not lost in the update of the theme, you need to create a child theme
The creation method of a Child Theme
Child theme name:mysite
Creation of – theme holder
wp-content/themes/mysite
Creation of – stylesheetstyle.css is created in the
wp-content/themes/mysite/style.css
The contents are as follows.
Creation of a style sheet
style.css/* Theme Name: mysite Author: Your name Author URI: http://yoursite.com Version: 0.1 Template:raindrops */
Usually, when making a child theme, it is explained that the style of a parent theme is imported as follows, but in rained Rops, it is unnecessary.
the child theme is detected and it imports automatically./* Raindrops No need import rules like below*/ @import url('../twentyten/style.css');
make file functions.php
ver1.200 ~<?php add_action( 'switch_theme', 'puddle_uninstall' ); function puddle_uninstall(){ delete_option("raindrops_theme_settings"); } ?>
This description is intended to use in a child theme, and change settings of Raindrops, if you uninstall, delete the configuration changes of the parent theme.
If you did not delete, you may be when you install the new Raindrops, correct, it is not displayed by default.Next Change from header image to slideshow
copy from Raindrops header.php to child theme header.php.
if ( true == $raindrops_link_unique_text ) { echo raindrops_header_image( 'elements' ); } else { echo raindrops_header_image( 'home_url' ); }
change below
if(function_exists('wp_content_slider')) { wp_content_slider(); }
Thank you.
It was after about four weeks, and then change the resolved because there is no answer, especially
- The topic ‘Raindrops Header Slideshow’ is closed to new replies.