Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #22535

    Hi there

    Does Eunoia theme disable the standard WordPress Featured Image in pages/posts, and if so is there a way to reinstate it?

    I’m using a mega menu plugin that requires adding graphics via the featured image setting, but it isn’t there!

    Thanks!

    #116126

    Yes, Eunoia deactivates this field and it uses the first slideshow image as featured image (sets it as featured image). Posts, Pages & Portfolio items won’t support the featured image option. Other post types support it though. If you want to activate the featured image option field for posts/pages/portfolios delete following function located in wp-contentthemeseunoiafunctions-eunoia.php:

    //remove post thumbnails from pages, posts and various custom post types
    if(!function_exists('avia_remove_post_thumbnails'))
    {
    add_theme_support( 'post-thumbnails' );

    add_action('posts_selection', 'avia_remove_post_thumbnails');
    add_action('init', 'avia_remove_post_thumbnails');
    add_filter('post_updated_messages','avia_remove_post_thumbnails');
    function avia_remove_post_thumbnails($msg)
    {
    global $post_type;
    $remove_when = array('post','page','portfolio');

    if(is_admin())
    {
    foreach($remove_when as $remove)
    {
    if($post_type == $remove || (isset($_GET['post_type']) && $_GET['post_type'] == $remove)) { remove_theme_support( 'post-thumbnails' ); };
    }
    }

    return $msg;
    }
    }

    #116127

    Hi, I thought this had done the trick, but not quite there…

    The featured image box reappears on pages, and I can add an image and update the page, but when I refresh, the featured image has gone again.

    Any ideas?

    Thanks!

    #116128

    Make sure that you still have this in your functions.php file:

    add_theme_support( 'post-thumbnails' );

    I don’t think its present anywhere except that function so if it gets completely deleted it may not be telling wordpress to properly give you the featured image support.

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Featured image in dashboard’ is closed to new replies.