Total Slider
[resolved] How to change empty title/desc behaviour ? (2 posts)

  1. sierramike
    Posted 2 years ago #


    I'm using this wonderful slider for which I want to thank you, I added navigation buttons (without changing js file, just using declarative way by using the css class cycle-prev and cycle-next, as told by the Cycle2 API), and now I wan't to changer another behaviour :

    Actually, when no title is set, the string "No title" is shown, same for description that shows "No text". I wan't to change that to show an empty string, so I can check if these strings are empty, than not to display the overlay in my template.

    I'm a really beginner in php (my job is related to C#/Asp.net, sorry !), so I don't find in the source code where I can change this, can you help me ?

    Thanks !


  2. Van Patten Media
    Plugin Author

    Posted 2 years ago #

    Hi sierramike -

    First of all, very smart to use the declarative approach. I prefer editing the JavaScript myself, but using the CSS classes is a great trick.

    I would recommend not altering the source code. What you might do instead is either edit the PHP so you check for that content (such as if ( $s->get_the_title() == 'No Title' ) :) or do the same in JavaScript, by checking those elements and then hiding the overlay (this would probably be a bit more involved).

    In future versions, we are planning on making this functionality a bit less opaque.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Total Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.