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.
I tried to put a block in the Slideshow block region, but nothing happens.
Is the Slideshow block region designed to work with only the built in slideshow, or can it be used to display other blocks as well?
Comments
Comment #1
javdich CreditAttribution: javdich commentedI fixed this (for now). I wanted to use a views slideshow instead of the included slideshow. What I did was add the following code to line 43 of page.tpl.php
I also added the following .css
.region-slides {background: #ffffff; width: 930px; border: 15px solid #ffffff;}
Of course if you want this to display on all pages you need to modify or delete page--front.tpl.php (remember to flush cache).
Comment #2
javdich CreditAttribution: javdich commentedYou also may have to modify this line of css to give you the correct height, depending on your picture size.
Comment #3
jhubley CreditAttribution: jhubley commentedHi jman05,
I inadvertently forgot to put the code for the slides region in page--front.tpl.php, so thank you for pointing that out. I've now added it there and committed the change.
I designed the theme to only display the slideshow on the homepage, so I haven't included the region in page.tpl.php. If other users want to add it there, though, they can follow your example. Thanks for writing it up!