Using an Image Gallery as a header: Difference between revisions


(Created page with '__NOTOC__ === Note: Article writing still in progress === Here we'll help you through the process of using an Image Gallery Component as your header. T…')
 
Line 3: Line 3:


Here we'll help you through the process of using an [[ImageGalleryComponent|Image Gallery Component]] as your header. This can be useful in the carousel view setting with an auto-rotate value set.
Here we'll help you through the process of using an [[ImageGalleryComponent|Image Gallery Component]] as your header. This can be useful in the carousel view setting with an auto-rotate value set.
The first thing you need to do is create a location in your header, if one doesn't already exist. The location id should be unique from the others. If you're using a two-column layout, it's likely that you'll be creating a layout with an id of "location_2". For these example purposes, we'll be using the theme "Hiller Windmill" as our base as it already has a header image that we can replace.
Now we want to modify the HTML in our default.html file. It will look like this when we start:
And look like this with our modification:
We've added a new location in-place of the existing header image. Now we can add an image gallery to our new location.
Now you have an image rotator in your header! You may need to tweak the styling to have it align and display how you'd like. This will vary from theme-to-theme and by your preference.
==== Extra Steps ====
If you want to hide the previous and next buttons, you can very easily hide them with this code. You'll need to adjust the selector to use the correct id for your layout.
<source lang="css">
#location_2 .image_gallery_component .carousel_controls { display: none; }
</source>
[[Category:Tips and Tricks]]
[[Category:Advanced Topics]]

Revision as of 14:27, 10 May 2010

Note: Article writing still in progress

Here we'll help you through the process of using an Image Gallery Component as your header. This can be useful in the carousel view setting with an auto-rotate value set.

The first thing you need to do is create a location in your header, if one doesn't already exist. The location id should be unique from the others. If you're using a two-column layout, it's likely that you'll be creating a layout with an id of "location_2". For these example purposes, we'll be using the theme "Hiller Windmill" as our base as it already has a header image that we can replace.

Now we want to modify the HTML in our default.html file. It will look like this when we start:

And look like this with our modification:

We've added a new location in-place of the existing header image. Now we can add an image gallery to our new location.

Now you have an image rotator in your header! You may need to tweak the styling to have it align and display how you'd like. This will vary from theme-to-theme and by your preference.

Extra Steps

If you want to hide the previous and next buttons, you can very easily hide them with this code. You'll need to adjust the selector to use the correct id for your layout.

#location_2 .image_gallery_component .carousel_controls { display: none; }