Fotorama Default Settings

How not to repeat the same attributes in each fotorama gallery.

Create file fotoramaDefaults.js in the /wp-content/plugins/ directory and list your options like so:

fotoramaDefaults = {
  nav: 'thumbs',
  allowfullscreen: 'native',
  transition: 'crossfade',
  loop: true,
  keyboard: true

Fotorama will try to fetch the options from the /wp-content/plugins/fotoramaDefaults.js.


Добавить комментарий

Ваш адрес email не будет опубликован.