I have enabled Slate 6.x-2.x Dev on my site but I am not able to get the front page image working.

I have selected a drop-down image from the list under theme configuration but it does not show up on the front page.

My site slogan & mission statement is ticked.

How can I get the image selected on the theme's front page ?

CommentFileSizeAuthor
#1 change-to-a-banner-that-rotates.png69.82 KBckopack
#1 img.zip185.77 KBckopack

Comments

ckopack’s picture

StatusFileSize
new185.77 KB
new69.82 KB

I do not claim to be an expert by any means. But I did figure out a cool trick to get the banner images working and rotating through a series of images you place in a folder.

Download the attached img.zip. Unzip it and place it in your acquia_slate folder.

Open style.css located in the same acquia_slate folder.

Find line 406. And change it to read:

#preface-wrapper {
background: transparent url('img/banners/rotate.php') no-repeat left top;
height: 420px;
margin: -33px 0 20px;
overflow: hidden;
position: relative;
width: 960px;
-moz-border-radius: 0 0 10px 10px;
-webkit-border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
}

Now any images in the banners folder will cycle through! Pretty cool! If you want to change the images just change the images in the banner folder. But its best to make sure the images are sized to 960 x 521.

I got the code from the Marinelli, so thanks to those guys!

mcrawshaw’s picture

You might find that if you don't have anything assigned to that region, the front image won't show because the region is collapseable.

Have you assigned something to the frontpage "preface sidebar region"?

http://drupal.org/node/418326

doomed’s picture

ckopack,

this looks like a cool idea

do you have it working on slate v1 or v2 ?

stoltoguzzi’s picture

for v2 I had to change line 72 in page-front.tpl.php

<div id="preface-wrapper" class="clearfix" <?php print $banner_image; ?>>

to

<div id="preface-wrapper" class="clearfix"

maybe there is a bether way to do it?

jeremycaldwell’s picture

Status: Active » Fixed

Very cool addition! Seems very well executed too so closing this for now.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

srbobc’s picture

The key to getting the image to appear is to enable a mission statement in Site Information. The mission statement will appear in the preface sidebar along with your image.