Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slide titles with thumbnails #120

Open
unwrittendevin opened this issue Oct 29, 2012 · 1 comment
Open

Slide titles with thumbnails #120

unwrittendevin opened this issue Oct 29, 2012 · 1 comment

Comments

@unwrittendevin
Copy link

Hi All,

I'm looking to append the slide title in my thumbnail navigation. I am using the WordPress Orbit Slider plugin, and have created a few demo slides to test out my slider.

I have modified the javascript to display a element instead of the background image or plain jane bullet nav, but I don't know which variable to insert to display the title, or if a new variable would have to be created to track the title from my WordPress custom post type.

Here is my code for what I have altered

 addBullet: function (index, slide) {
      var position = index + 1,
          thumbName,
          self = this,
          $li = $('<li><button class="btn"><i class="icon icon-play pull-right"></i>' 
          + "I want the slide title here"  
          + '</button></li>');
if (this.options.bulletThumbs) {
            thumbName = $(slide).attr('data-thumb');
            if (thumbName) {
          $li
            .addClass('has-thumb')
            //.css({});
            }
        }
        this.$bullets.append($li);
        $li.data('index', index);
        $li.click(function () {
            self.stopClock();
            self.$element.trigger('orbit.goto', [$li.data('index')])
        });
    },

Any help would be greatly appreciated!

@ameliapower
Copy link

Did you get this to work? I am trying to do the same thing—to get bullets to display as thumbnails with the title and hover state.

Appreciate any help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants