Results 1 to 2 of 2

Thread: Need To Create Vertical Slider For Homepage

  1. #1
    Thread Starter
    Amateur dustinrwh's Avatar
    Join Date
    Nov 2011
    Posts
    11
    Thanks
    6
    Thanked 1 Time in 1 Post

    Wink Need To Create Vertical Slider For Homepage

    Hello all!

    I have been working awhile on making a different kind of slider for featured listings on the homepage of a new site I am designing. Rather than just using thumbnails, I would like to display the thumbnail, title, price and description and would like the listings to rotate vertically. Right now, I am able to get all of the featured listings in the correct format, but am not sure how to link this to the javascript and how to change the java code to get it to do what I want. Below is some code and a picture of what I am talking about:

    Code to get listings (I just created a new featured.php file):

    HTML Code:
    <?php
    /**
     * The featured slider on the home page
     *
     */
    ?>
    
    <?php if ( get_option('cp_enable_featured') == 'yes' ) : ?>
    	
    	<script type="text/javascript">
    // <![CDATA[
        /* featured listings slider */
        jQuery(document).ready(function($) {
            $('.slider').jCarouselLite({
                btnNext: '.next',
                btnPrev: '.prev',
                vertical: true,
                visible: 15,
                hoverPause: true,
                auto: 2800,
                speed: 1100,
                easing: 'easeOutQuint' // for different types of easing, see easing.js
            });
        });
    // ]]>
    </script>
    	
    	<?php query_posts( array('post__in' => get_option('sticky_posts'), 'post_type' => APP_POST_TYPE, 'post_status' => 'publish', 'orderby' => 'rand') ); ?>
    	<?php if ( have_posts() ) : ?>
    		 <ul>
    		 
    		 
    		
    		<?php get_template_part( 'loop', 'ad_listinghome' ); ?>
    
    <?php endif; ?>
    	<?php wp_reset_query(); ?>
    <?php endif; // end feature ad slider check ?>
    Here is a picture of the set up. I just want the listings to cycle through vertically every 15 seconds:

    Screen shot 2012-01-07 at 12.49.43 PM.png

    Any help is appreciated!

  2. #2
    Veteran barukar's Avatar
    Join Date
    Sep 2010
    Location
    Brasil, São Paulo, SP
    Posts
    6,782
    Thanks
    185
    Thanked 740 Times in 622 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    -------------------------------------------------------------------------------------------
    Projects: ClassiNoiva - Classimóveis - vocênoenem - i50 - Clube DETRAN

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to remove featured listings carousel on homepage and replace with another slider?
    By michaeldante in forum ClassiPress General Discussion
    Replies: 6
    Last Post: May 4th, 2014, 07:42 AM
  2. Delete create an account button on homepage widget
    By jpartner in forum ClassiPress General Discussion
    Replies: 2
    Last Post: December 1st, 2011, 11:18 AM
  3. Slider for featured listings on homepage
    By cbcarads in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: July 24th, 2011, 08:32 PM
  4. Featured Slider on Homepage - Not displaying properly
    By hiro in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: August 23rd, 2010, 12:03 PM