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

javdich’s picture

I 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

     <!-- Slideshow -->
          <div id="slideshow"><?php print render($page['slides']); ?></div>
     <!-- /#Slideshow --> 

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

javdich’s picture

You also may have to modify this line of css to give you the correct height, depending on your picture size.

#slideshow {
    height: 380px;
    margin-top: 20px;
    position: relative;
    width: 960px;
}
jhubley’s picture

Status: Active » Closed (fixed)

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