close icon
This forum is closed now and viewable here as an archive. For paid themes and services please open a support ticket. For free themes support, please open issue at Drupal.org project page. For other purposes, please contact us.

how to add more than three slides and how to remove slides if not used

compufreq's picture

how to add more than three slides and how to remove slides if not used

By compufreq on Mon, 10/07/2013 - 12:26

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 ??

admin's picture

Submitted by admin on Mon, 10/07/2013 - 15:55

@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.

compufreq's picture

Submitted by compufreq on Sat, 10/12/2013 - 11:18

the free theme am using is berry

admin's picture

Submitted by admin on Tue, 10/15/2013 - 08:48

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!!!