Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#21066 closed enhancement (wontfix)

A slideshow/carousel for the Twenty Eleven Showcase

Reported by: gorgoglionemeister's profile gorgoglionemeister Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Bundled Theme Keywords: close
Focuses: Cc:

Description

Hi, the Twenty Eleven Showcase template now supports only a fading effect. It's possible to have in addition a slideshow/carousel?

Change History (4)

#1 @kobenland
13 years ago

  • Component changed from Themes to Bundled Theme
  • Keywords close added

Hm, I'd consider this plugin (or Child Theme) territory.

This is the code I use to make it work, modeled after an example:

jQuery(function($) {
        
        $('.feature-slider a').click(function(e) {
                $('.featured-posts section.featured-post').css({
                        opacity: 0,
                        visibility: 'hidden'
                });
                $(this.hash).css({
                        opacity: 1,
                        visibility: 'visible'
                });
                $('.feature-slider a').removeClass('active');
                $(this).addClass('active');
                e.preventDefault();
        });
        
        var current = 1;
        setInterval(function(){ 
                $('.feature-slider a').eq(current % $('.feature-slider a').length).trigger('click',[true]);
                current++;
        },4000);
});

#2 @SergeyBiryukov
13 years ago

Sounds like plugin or child theme territory to me as well.

#4 @SergeyBiryukov
13 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.