Here’s my site:
http://www.itinerantangler.com
As you can see I’ve hollowed out the search form and moved the slider to the top of each page to serve as a banner.
Here’s a question though. I’ve noticed that the banner will only scroll if it passes the query “is_front_page.” Front page banners scroll, sub-pages only get a static image.
Leaving aside how I have positioned the slider on my particular site, would it be possible to modify the slider code so that it scrolls on EVERY page regardless of whether or not it is on the front page, and if so, how?
Thanks,
Zach
Open functions.php and for this code remove the if() endif; conditional:
<?php if( ( is_home() && ! is_paged() ) || ( is_front_page() && ! is_home() ) || is_page_template( 'template-landing-page.php' ) ) : ?>
$('#slider').flexslider({
selector: '.slides > li',
video: true,
prevText: '←',
nextText: '→',
pausePlay: true,
pauseText: '||',
playText: '>',
before: function() {
$('#slider .entry-title').hide();
},
after: function() {
$('#slider .entry-title').fadeIn();
}
});
<?php endif; ?>
Hi Zach,
I like how you did this. Is there a chance you can tell me how you did it?
I’d like to incorporate it on a clients site that I’m working on. I like the header graphic with superimposed logo.
I had initially planned on using Enlightenment for my new site, but I’m finding issues with being able to incorporate the branding, which is important for client sites.
bcr8tive~