By compufreq on Mon, 10/07/2013 - 12:26
Forums:
at my website i need to add more than 3 slides how to do so and what if i wanted to delete the extra added slides how to do so too ??
at my website i need to add more than 3 slides how to do so and what if i wanted to delete the extra added slides how to do so too ??
Comments
@compufreq, please mention the free theme you are using.
To add / remove slides from slider, you will need to manually edit few codes. Depending on theme you are using, I can guide you with that.
the free theme am using is berry
Please follow these simple steps.
To add more slides:
Step 1:
Open templates/page--front.tpl.php in any text editor.
Step 2:
Find following code
<img src="<?php echo theme_get_setting('slider_three_image'); ?>" />
Below this add location of image of new slide. Something like this,
<img src="http://localhost.com/images/4.jpg" />
Step 3:
Now find following code
<div class="slidertitle"><?php echo theme_get_setting('slider_three_title'); ?></div>
Below this add title of your new slider. Something like this.
<div class="slidertitle">This is title of slider four</div>
Step 4:
Now find following code
<div class="slidertext" style="display: none;"><?php echo theme_get_setting('slider_three_desc'); ?></div>
Below this add description of your fourth slider. Something like this:
<div class="slidertext" style="display: none;">This is description of slider four</div>
Save page--front.tpl.php
Done!!!
To remove slides:
Lets, say we want to remove third slider.
Step 1:
Open templates/page--front.tpl.php in any text editor.
Step 2:
Find and delete following codes.
<img src="<?php echo theme_get_setting('slider_three_image'); ?>" />
<div class="slidertitle"><?php echo theme_get_setting('slider_three_title'); ?></div>
<div class="slidertext" style="display: none;"><?php echo theme_get_setting('slider_three_desc'); ?></div>
Save page--front.tpl.php
Done!!!