Support » Plugin: Eazyest Gallery » Classes and output markup for gallery thumbnails

Viewing 4 replies - 1 through 4 (of 4 total)
  • Managed to change the gallery_div markup with a filter.

    function kli_style_div() {
            $gallery_div = "<ul class="small-block-grid-2">"
            return $gallery_div;
    add_filter( 'gallery_style', 'kli_style_div', 99 );
    Plugin Author Marcel Brinkkemper


    Yes, that’s how it works.

    How to make Eazyest Gallery [gallery] output markup to be different from other [gallery] output?

    Can’t find how to customize the gallery_div tag only for Eazyest Gallery.
    The eazyest_gallery_itemtag filter special for the plugin.
    So why not have a gallery_div tag special for the plugin?

    function kli_eazyest_gallery_itemtag() { return "li"; }
    add_filter("eazyest_gallery_itemtag", "kli_eazyest_gallery_itemtag",10,2);

    ps: The shortcode_atts_gallery filter has no effect for Eazyest Gallery.

    function kli_ezg_gallery_atts( $attr ) {
            $attr['itemtag'] = 'div';
            $attr['nolinkwrap'] = false; //custom
            return $attr;
    add_filter( 'shortcode_atts_gallery', 'kli_ezg_gallery_atts',2099 );

    (using plugin v.0.1.RC14)

    Plugin Author Marcel Brinkkemper


    You can check if you are displaying a galleryfolder post_type befrore you processs the filter.
    PS this filter is introduced in 3.6 the plugin does not support these new filters (yet)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Classes and output markup for gallery thumbnails’ is closed to new replies.