WordPress.org

Ready to get started?Download WordPress

Forums

Eazyest Gallery
[resolved] Widget: EZG Recent folders (3 posts)

  1. tompasworld
    Member
    Posted 7 months ago #

    Hi,

    Is there a way to remove the subfolder icon from the "Recent folders" widget?

    HereĀ“s how it looks right now: http://jikrantz.se/bilder/galleryfolderproblem.jpg

    As the subfolder only contains folders but no photos by itself, I would like to remove it from from public view in the widget.

    Thanks in advance,
    Thomas

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

  2. klihelp
    Member
    Plugin Author

    Posted 6 months ago #

    You can use 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

  3. klihelp
    Member
    Plugin Author

    Posted 6 months ago #

    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.