Skip to content
Discussion options

You must be logged in to vote

Hi,

It depends on your preferences. For example, you could create a custom top toolbar. v3 had a built-in toolbar plugin, it's in the todo list for v4, but you can easily create your own.

Demo - https://fancyapps.com/playground/pH

JS

Fancybox.bind('[data-fancybox="gallery"]', {
    closeButton : false,
    on: {
      initLayout: (fancybox) => {
        // Create top bar
        const $top = document.createElement("div");
        $top.classList.add("fancybox__top");

        // Create download link
        const $downloadLink = document.createElement("a");
        $downloadLink.classList.add("carousel__button");
        $downloadLink.classList.add("fancybox__download");
        $downloadLink

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bennyb
Comment options

Answer selected by bennyb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants