Support » Plugin: Total Slider » How to change empty title/desc behaviour ?

  • Resolved sierramike



    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#/, sorry !), so I don’t find in the source code where I can change this, can you help me ?

    Thanks !

Viewing 1 replies (of 1 total)
  • Plugin Author Van Patten Media


    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.


Viewing 1 replies (of 1 total)
  • The topic ‘How to change empty title/desc behaviour ?’ is closed to new replies.