Link - Lightbox / modal / popup, event triggering, smooth scrolling

In this article

There are more options under the link buttons than you would first think. You will find here a framework specific linking option, lightbox and actions to trigger animation events.

You can find link buttons at your layers, and at the slide settings.

Framework specific links

WordPress

In WordPress you can search and select your posts or pages to link to them.

Joomla

In Joomla you can search and select your articles to link to them.

⚠️ Warning: There are no customization options for the lightbox! If you want more specific behavior or display, use a lightbox plugin or extension!
1
Content list - One per line

You can insert either images, YouTube videos, Vimeo videos or iframes in here to make them popup in a lightbox. If you want to show more contents, put one link into one line, and you will be able to switch between them with arrows.

If you're using WordPress then you can load a slider to the lightbox by entering the slider ID.

Lightbox doesn't load website address

  1. If your site uses SSL (so it's https not http) you can only use https links. Browsers don't load http content into https pages for security reasons.
  2. Some websites have custom HTTP headers which prevent their content from being loaded on other websites. So if you're loading another website into yours but it doesn't display, this can be the reason.
2
Titles - One per line

You can add a title to your lightbox in the second input area.

3
Autoplay duration

If you have chosen to show more contents, you can add autoplay to them, and they will automatically switch from one to the other after the given time.

💡 Slide backgrounds in Lightbox

Create a lightbox automatically from your slider's background images at the Slider settings → Slides tab.

Possible problems

Lightbox doesn't load website address

We are using iframes for the lightbox to show the url you gave. If you have your website on https link, then in your site browsers will only load websites in iframes, which are also on https links.

Lightbox doesn't work on mobile phones

A lot of mobile phones have limitations about showing iframe content. Some of them won't show them at all, so you would see just an empty lightbox, while others are simply opening up the links. This can result in having the links opened on a new tab. If you are using videos, like Vimeo or Youtube, then mobile phones are trying to open them up using Vimeo/Youtube applications, just if you don't have them installed on the phone, you can see as nothing happening and this will be the problem at you. You can disable the "Lightbox Videos In New Tab On Mobile" at the Global settings → General which would make your phone open up the lightboxes in the original way, but then you will have the problem described before. Sadly we don't have control over phones trying to use applications, so currently these are the options you have.

Action Pro

How to add actions?

There are 7 actions available:

1
Scroll to

Smooth scrolling to either one of these options:

  • top - to the top of the page
  • bottom - to the bottom of the page
  • beforeSlider - right before the slider
  • afterSlider - right after the slider
  • previousSlider - to the previous slider
  • nextSlider - to the next slider
  • jQuery selector - to any element in your website, just give the jQuery selector of that element for example: #header

    Example: if the slider ID is 5, the slider's HTML id is: n2-ss-5 so the jQuery selector is #n2-ss-5.

💡 Tips

You can use a slider's unique ID to scroll to it (when both sliders are on the same page). The id has the following syntax: n2-ss-[sliderid], and you can get the slider id like this.

3.4.1.5 The Scroll To action uses the Focus offset - Top at Global settings to scroll below the top menu if it's a fixed menu.

2
Scroll to alias

Scrolls to a slider alias within the current page.

3
Go to slide

You can switch to another slide of the current slider, just give it's index number here. If you want to switch another slider's slide, check out this article.

4
Previous slide

The same as the Go to slide option, but this will switch to the previous slide, and you don't need to give an index number.

5
Next slide

Same as the Previous slide, just it will go to the next slide.

6
Slide event

At your layers' animations you can choose not to automatically show them, but to trigger them with events. If you put some event's name in here, the clicking of this layer will trigger the animation. Check out this article for more information about events.

7
Go to slide ID

You can switch to another slide, just give it's ID here. You can find out the slide id from the url of the page, when you are in your slide's editor. For example here:
http://example.com/wp-admin/admin.php?page=smart-slider3&nextendcontroller=slides&nextendaction=edit&groupID=0&sliderid=3& slideid=23
23 is the slide's ID.

You can use this action to switch to a slide in a different slider which is on the same page as the slider with the Go to Slide ID action. But that slider cannot have Loading type - After page loaded.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.