Hi jasjoerii:
Currently, the title and description are required, but I agree that they should be optional. If you’re not using your title and description in any slide, you can delete them from your theme and then just put in random text; it’ll satisfy Total Slider, and they won’t show up in the theme.
I’ve added this feature request to our issue tracker; we’ll add more details there as we develop it.
In terms of navigation buttons:
For future reference, I’ve copied the below into a Navigation Buttons page at the Total Slider Developer Wiki. We’ll keep the most up-to-date instructions there!
First (I have to say this): make sure you aren’t editing the default theme within the plugins directory. Make sure you copy it to your own theme’s directory, so you don’t lose your customizations when you update Total Slider. You can see instructions on how to do this at our Developer Wiki.
As for next/previous buttons, it’s very easy! In fact, I just built some this week for a Total Slider install (you can see them here).
Here’s the JavaScript:
$('.total-slider').cycle({
speed: 1000,
timeout: 11000,
prev: $('#total-slider-previous'),
next: $('#total-slider-next')
});
The prev
and next
properties target specific HTML elements that will be used as the next/prev links. I’m using two a
tags with the IDs total-slider-previous
and -next
, as appropriate.
Here it is in the template’s PHP file:
<?php if ( $s->is_runtime() ) : ?>
<a href="javascript:;" id="total-slider-previous">?</a>
<a href="javascript:;" id="total-slider-next">?</a>
<?php endif; ?>
I use <?php if ( $s->is_runtime() ) : ?>
to make sure I only show the next/previous buttons on the live website, not the slide editor. This makes sure the slide editor is clean and the buttons don’t cause confusion (they won’t work in the admin area, so no sense in showing them!).
Unless you have a good reason not to, I highly recommend hiding navigation buttons in the slide editor!
And there you go – that’s all there is to it! You can style those buttons however you like. Add classes, wrap them in div
elements, make them images, etc. Very easy and quick!