This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#slideshow #slidesContainer { | |
margin:0 auto; | |
width:560px; | |
height:263px; | |
overflow:auto; /* allow scrollbar */ | |
position:relative; | |
} | |
#slideshow #slidesContainer .slide { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// info per featured item you can add more template tags: | |
// http://codex.wordpress.org/Template_Tags/ | |
// add your own style it in the css file: ?> | |
<span> | |
<h2><?php the_title();?></h2> | |
<p><?php the_excerpt(); ?></p> | |
<span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Construct your featured item: ?> | |
<div class="slide"> | |
<?php // We are using the post thumbnail: ?> | |
<?php the_post_thumbnail();?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------------------------------------THE LOOP | |
// Add support for Thumbnails: | |
// Enter your post thumbnail in the WP admin | |
add_theme_support('post-thumbnails'); | |
//--------------------------------------------Slick SlideShow | |
function slickslide_loop(){ ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------------------------------------Slick SlideShow | |
function slickslide_loop(){ ?> | |
<?php // Start the slideshow divs: ?> | |
<div id="slideshow"> | |
<div id="slidesContainer"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Create a query using the # items from the 'featured' category | |
$my_query = new WP_Query('category_name=featured&showposts=5'); | |
while ($my_query->have_posts()) : $my_query->the_post(); | |
?> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_theme_support('post-thumbnails');function slickslide_loop(){ ?><?php // Start the slideshow divs: ?> | |
<div id="slideshow"> | |
<div id="slidesContainer"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function add_slickslide_js($dropdown_options) { | |
//If we want Thematic dropdown features, we spit back the original options | |
echo $dropdown_options; | |
//Then we break out of PHP and add more stuff to the header: | |
?> | |
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.js"></script> | |
<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/slickslide.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------------------Adding JS for Slick Slide | |
function add_slickslide_js($dropdown_options) { | |
//If we want Thematic dropdown features, we spit back the original options | |
echo $dropdown_options; | |
//Then we break out of PHP and add more stuff to the header: | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-------------------------------------------Adding JS for Slick Slide | |
function add_slickslide_js($dropdown_options) { | |
//If we want Thematic dropdown features, we spit back the original options | |
echo $dropdown_options; | |
//Then we break out of PHP and add more stuff to the header: | |
?> |
NewerOlder