WordPress.org

Support

Support » Plugins and Hacks » [Resolved] How to delete pictures name?

[Resolved] How to delete pictures name?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author klihelp

    @klihelp

    In your template functions you have to overwrite the [gallery] shortcode output.

    Something like this:

    add_filter("post_gallery", "my_gallery_output",10,2);
    
    function my_gallery_output($output, $attr) {
    
       // modify the original gallery output here ...
    
    }

    Thanks for your respond but sorry i don’t get it..
    Where can i find the template functions file?
    Do i have to look at the main website template or that of the plugin?

    Plugin Author klihelp

    @klihelp

    The plugin, Eazyest Gallery, using the built-in [gallery] shortcode output, so there is no template.

    You can get the code from the wordpress gallery_shortcode function, modify to remove the media caption.
    http://core.trac.wordpress.org/browser/branches/3.5/wp-includes/media.php#L661

    Maybe comment this line as well, to make sure other plugins will not change the gallery output:

    // Allow plugins/themes to override the default gallery template.
    $output = apply_filters(‘post_gallery’, ”, $attr);

    Plugin Author Marcel Brinkkemper

    @macbrink

    It may be easier to just add this to your stylesheet:

    .wp-caption-text.gallery-caption { display:none; }

    works in 99% of galleries

    makkelijk zat.

    Thanks for the respond Marcel Brinkkemper, by doing that i got the name removed beneath the pictures. But it also removed the names beneath my albums.

    I only want to remove the names beneath my pictures not also my albums.

    Plugin Author Marcel Brinkkemper

    @macbrink

    Okay make it like this:

    .wp-caption-text.gallery-caption { display:none; }
    .wp-caption-text.gallery-caption.folder-caption { display:block; }

    That solved my problem. Thank you!

    Thanks Marcel, solved my problem also.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] How to delete pictures name?’ is closed to new replies.