Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change arrow icons? #15

Closed
tou0125 opened this issue Jul 3, 2021 · 2 comments
Closed

Change arrow icons? #15

tou0125 opened this issue Jul 3, 2021 · 2 comments

Comments

@tou0125
Copy link

tou0125 commented Jul 3, 2021

Hi,

How can I change the prev and next arrow icons?

I tried:

template:{ prevTpl' <button type="button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg></button>', nextTpl: ''<button type="button"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg></button>', },

This didn't work for me, so I changed my local copy of the fancybox.umd.js file for now.

Thanks!

@fancyapps
Copy link
Owner

Hi,

Looks like you have syntax error here - prevTpl' <button - missing :

@Pixelous
Copy link

@piasm take a look at #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants