WordPress.org

Ready to get started?Download WordPress

Forums

Eazyest Gallery
[resolved] How to delete pictures name? (9 posts)

  1. djproducer1
    Member
    Posted 1 year ago #

    Hi how can i delete all the names of the pictures below them? See this picture link for more details. Thanks for the help.
    http://s10.postimg.org/oqtl50mhl/untitled.jpg

    http://wordpress.org/extend/plugins/eazyest-gallery/

  2. klihelp
    Member
    Plugin Author

    Posted 1 year ago #

    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 ...
    
    }
  3. djproducer1
    Member
    Posted 1 year ago #

    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?

  4. klihelp
    Member
    Plugin Author

    Posted 1 year ago #

    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);

  5. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  6. djproducer1
    Member
    Posted 1 year ago #

    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.

  7. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    Okay make it like this:

    .wp-caption-text.gallery-caption { display:none; }
    .wp-caption-text.gallery-caption.folder-caption { display:block; }
  8. djproducer1
    Member
    Posted 1 year ago #

    That solved my problem. Thank you!

  9. drinkingsouls
    Member
    Posted 1 year ago #

    Thanks Marcel, solved my problem also.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic