WordPress.org

Ready to get started?Download WordPress

Forums

NextGEN Gallery
[resolved] Remove "Set NextGEN featured image" (6 posts)

  1. shmk
    Member
    Posted 10 months ago #

    Is it possible to remove/hide the "Set NextGEN featured image" that appears below "Set featured image" in a page edit screen?

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

  2. blind337
    Member
    Posted 10 months ago #

    I can't find the remove options either, so I just "hardcode" it. Just go to
    nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/lib/post-thumbnail.php
    find this code in line 70 and comment it

    $content .= sprintf($set_thumbnail_link, esc_html__( 'Set NextGEN featured image' ));

  3. Riccardo
    Member
    Posted 10 months ago #

    I've found a solution to remove it without hardcoding NextGEN.
    I have installed NextGEN and another plugin: Adminimize, a plugin that limits the visibility of backend elements based on user group.

    On Adminimize setting page I have added this rule for post and pages:
    1. rule name: NextGEN Featured Image
    2. id or class: #set-ngg-post-thumbnail
    and I have enabled it for the usergroups that not have to see the "Set NextGEN featured image" :)

  4. comprido
    Member
    Posted 8 months ago #

    I´m using MultiPostThumbnails plugin and want to establish the "Set NextGEN featured image" under the corresponding admin blocks edition page, may you please help me?

    Thanks!

  5. ipm-frommen
    Member
    Posted 4 weeks ago #

    Over at Stack Overflow, I posted two different solutions to this.

    The easy one is as follows:

    function so_23984689_remove_nextgen_post_thumbnail_html() {
    
        remove_all_filters( 'admin_post_thumbnail_html' );
    }
    
    add_action(
        'do_meta_boxes',
        'so_23984689_remove_nextgen_post_thumbnail_html'
    );
  6. photocrati
    Member
    Plugin Author

    Posted 3 weeks ago #

    @ipm-frommen - Thanks for sharing!

    - Cais.

Reply

You must log in to post.

About this Plugin

About this Topic