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…')
 
 
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
__NOTOC__
=== Note: Article writing still in progress ===


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 theme header image. This can be useful in the carousel view setting with an auto-rotate value set.
 
<div class='note'>
'''Note:'''<br />
For information about managing your site header settings, see the [[Header Settings]] page.
</div>
 
 
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".
 
 
[[File:Carousel.theme.preview.jpg]]
 
 
Now we want to modify the HTML in our default.html file (see: [[Editing_Theme_Source_Code|Editing Theme Source Code]]). It will look like this when we start:
 
 
[[File:Carousel.code.original.jpg]]
 
 
And look like this with our modification:
 
 
[[File:Carousel.code.modified.jpg]]
 
 
We've added a new location in-place of the existing header image. Now we can add an image gallery to our new location (see: [[Adding_to_a_Page|Adding to a Page]]). Make sure you've added the images you want to use to a folder. That will make it easier for displaying on the the images you want to display in your header (see: [[File Folders]]).
 
 
[[File:Carousel.settings.jpg]]
 
 
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.
 
 
[[File:Carousel.image_gallery.jpg]]
 
 
== 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. You'll need to add this to your main CSS file. See: [[Editing_Theme_Source_Code|Editing Theme Source Code]].
 
 
<source lang="css">
#location_2 .image_gallery_component .carousel_controls { display: none; }
</source>
 
 
[[Category:Tips and Tricks]]
[[Category:Advanced Topics]]

Latest revision as of 16:14, 18 December 2013


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

Note:
For information about managing your site header settings, see the Header Settings page.


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


Carousel.theme.preview.jpg


Now we want to modify the HTML in our default.html file (see: Editing Theme Source Code). It will look like this when we start:


Carousel.code.original.jpg


And look like this with our modification:


Carousel.code.modified.jpg


We've added a new location in-place of the existing header image. Now we can add an image gallery to our new location (see: Adding to a Page). Make sure you've added the images you want to use to a folder. That will make it easier for displaying on the the images you want to display in your header (see: File Folders).


Carousel.settings.jpg


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.


Carousel.image gallery.jpg


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. You'll need to add this to your main CSS file. See: Editing Theme Source Code.


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