Skip to content
This repository

Add alignment option to metadata #57

Closed
JLeuze opened this Issue · 4 comments

1 participant

Josh Leuze
Josh Leuze
Owner

Allow the option to set the alignment of the slideshow using metadata. Check if the metadata can just be used like other classes or if I need something like align: 'left' instead.

Josh Leuze
Owner

Got this working using jQuery to check for the align option in the custom metadata and adding a class to the slideshow if the align option exists and matches "left", "right", or "center".

Works great so far but needs a bit more testing with different themes and browsers.

Josh Leuze
Owner
JLeuze commented

This is working fine, no issues that I can find in any browsers or themes. Need to explain it in blog post and add info to FAQ and documentation.

Josh Leuze
Owner
JLeuze commented

Need to move var for metadata to the top with other vars.

Josh Leuze
Owner

Had to update function to work with multiple slideshows on the same page, moving var inside an each, setting it and applying classes to each slideshow instance. Working perfectly now.

Josh Leuze JLeuze closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.