Ninja Slider / Posts /

Longer captions on fullscreen

2

Suppose I want a simple one sentence caption on the preview and a longer one upon full screen, is that possible?

Matthew  3 years ago   viewed: 3444    

2 Answers

1

In the HTML code you can add two caption blocks for each slide, one for the normal screen and another for the full screen, and in the CSS:

#ninja-slider .caption-normal {display:block;} #ninja-slider.fullscreen .caption-normal {display:none;} #ninja-slider .caption-fs {display:none;} #ninja-slider.fullscreen .caption-fs {display:block;}
Milo   3 years ago
0

I was given code a while ago to help centre the slider fullwidth caption on my editing services for writers, which relied on setting the width. This of course only works on screen sizes close to that distance; the caption was cut off on smaller screens.

PatrickMoran
  one month ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: