WordPress.org

Forums

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

  1. tompasworld
    Member
    Posted 1 year 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 1 year 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 1 year 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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Eazyest Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.