Custom gallery settings – conditional check
-
Using print_media_templates i managed to extend default gallery to more like multi-gallery using different output based on selected type.
For example first custom option:<select name="type" data-setting="type"> <option value="default">Default</option> <option value="grid">Responsive Grid</option> <option value="masonry">Masonry</option> <option value="slider">Slider</option> <option value="carousel">Carousel</option> </select>define base type of gallery output. Then there’s lot of option for each type (grid columns, paddings, slider speed, animation etc.) so it’s rather long. The question is how can display only one part of settings based on currently selected “type” ?
It was easy to do it for metaboxes or customizer but i can’t get it working there since markup is different (html select / input / checkbox ).
Thanks
The topic ‘Custom gallery settings – conditional check’ is closed to new replies.