If you don’t know this theme yet, you should check it out at Graph Paper Press.
Modularity Lite is Thad Allender’s freebie version of a larger framework. I was customising this theme for Jerry Hyde’s site recently, and thought I’d take some notes to share with you.
Slowing Down the Slideshow
I’ve been through every PHP file I could find to no avail for a “display duration” setting of sorts. Turns our the slideshow is generated in Java Script, hence the correct setting can be found in the header.php file, somewhere down the lower thrid end. The code block starts with >> if ($slideshow_state == ‘On’) <<
In it, you’ll find two parameters: SPEED which is in fact the cross fade duration, and TIMEOUT which is the duration of each slide. 1000 is about 1 second, 2000 is 2 seconds, and so forth.
Display Slideshow on pages other than The Blog
This is a tricky one, but there’s an easy solution as ever.
The slideshow Java Script code is contained in the header.php file, which means it loads on every page – it just doesn’t get activated. Activation for the slideshow happens in index.php, which only gets loaded when blog posts are displayed – not when pages are loaded (because they use the page.php template if available – which it is in this case). All we need to do is to copy this code from index.php into our page.php file and the slideshow will show up on ALL pages.
<!-- Begin Slideshow --> <?php include (THEMELIB . '/apps/slideshow-static.php'); ?>
If you’d like to make it show only on one particular page, find out its page ID and use an if-then statement.
Displaying more images in the Slideshow
The file you need to modify for this is /library/apps/slideshow-static.php – it’ll list 5 images, just add more or use your own file names. The images for the slideshow are stored in the /images subfolder of your theme.
Playing with the Navigation Menu
If you’d like to add or remove items from the Nav Menu, have a look at the nav.php file in the main theme directory. All dropdowns are CSS styled HTML lists, so amending them with your requirements shouldn’t be too taxing.
Modify the Credits
The Credits are part of the footer.php file, should you wish to add, remove or amend portions (such as your affiliate link to Graph Paper Press). Please note that it’s good practice to give credit where credit is due, and if you’re using a free theme, why not give the author a link to say thanks.
Have fun