Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello,
I added another picture slideshow by following the instructions of Ujval Shah, the 4th image actually appears on the site, but in the back office does not show the description to put the image 4, tried to solve cleaning the cache on my website and my explorer but still the same problema.
Any help or advice appreciated.
Thanks,
Jéssica
Comments
Comment #2
saurabh.dhariwal CreditAttribution: saurabh.dhariwal at AddWeb Solution Pvt. Ltd. commentedFor adding 4th slide's description in slider, you require to change in
theme.settings.php
(sites/all/theme/bluez/theme.settings.php).Find below code
And add the below code after the above code.
This would lead towards setting up your 4th slide's description which is available at admin/appearance/settings/bluez and related changes in
template.php
andpage--front.tpl.php
.Hope this helps you.
Thanks!
Comment #3
Ujval Shah CreditAttribution: Ujval Shah as a volunteer commentedFollowing Files need to update:
1. template.php
add below code after line number : 69
$vars['slide4_title'] = theme_get_setting('slide4_title', 'bluez');
add below code after line number : 73
$vars['slide4_desc'] = theme_get_setting('slide4_desc', 'bluez');
add below code after line number : 85
$vars['img4'] = base_path() . drupal_get_path('theme', 'bluez') . '/images/slideshow/slide-image-4.jpg';
add below code after line number : 107
2. theme-settings.php
Add below code after line number : 85
3. page--front.tpl.php
add below code after line number : 123
<?php print $slideimage4; ?>
add below code after line number : 150
add below code after line number : 163
<a rel="4" href="#"></a>
PS :
1. Do not forget to upload new image slide-image-4.jpg
2. After doing above changes do not forget to clear the cache of the site from admin/config/development/performance
Comment #4
Ujval Shah CreditAttribution: Ujval Shah as a volunteer commented