WordPress.org

Ready to get started?Download WordPress

Forums

Eazyest Gallery
[resolved] Modify Folder Icon (3 posts)

  1. NahuelFK
    Member
    Posted 6 months ago #

    Is there a way to show the folder icon but not displaying the image in the gallery attached to it?

    http://fifam08.com.ar/kits/

    I want the logo on OFC only to be displayed as a folder icon. (If you enter the gallery, you'll see the image).

    Thanks!

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

  2. klihelp
    Member
    Plugin Author

    Posted 5 months ago #

    You can enable Extra Fields for Folders for the icon url, than custom code the gallery output.

    --
    Also this could be done with folder Featured Images (not supported yet) and custom gallery output to exclude this image from the attachments.
    see: http://wordpress.org/support/topic/featured-image-113

  3. klihelp
    Member
    Plugin Author

    Posted 4 months ago #

    You can use also the eazyest_gallery_folder_icon filter.

    The plugin uses that filter for the folder icon:
    $icon = apply_filters( 'eazyest_gallery_folder_icon', eazyest_gallery()->plugin_url . 'frontend/images/folder-icon.png' );

    WordPress page about how to add filters:
    http://codex.wordpress.org/Function_Reference/add_filter

    The code for your functions.php:

    // Custom folder icon thumbnail
    function custom_folder_icon() {
    	return 'custom/path/to/image.jpg';
    }
    add_filter('eazyest_gallery_folder_icon','custom_folder_icon');

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.