Your Cart

Reply To: Adding a class to Galleria DOM elements within the theme

These forums are now closed to new replies / tickets.

Please open a support ticket from our new Support page.

Front Page Forums Problems Adding a class to Galleria DOM elements within the theme Reply To: Adding a class to Galleria DOM elements within the theme

gravatar
vale
July 12, 2015 at 4:41 pm

Solved!
The problem was that I was retaining the DOM element by using the
“galleria” prefix. This is how it was supposed to be done:

this.addElement(‘button-thumbs’);
var
$thumbnailsContainer = this.$(‘thumbnails-container’),
$buttonThumbs = this.$(‘button-thumbs’);

$buttonThumbs.click(this.proxy(function(e) {
$thumbnailsContainer.toggleClass(‘toggleme’);
$buttonThumbs.toggleClass(‘onbutton’); }));
this.appendChild(‘container’, ‘button-thumbs’);


Galleria.io uses cookies to store information. You can read more about that in our Privacy Policy. I understand