Enable Featured Image for Pages

Themify themes don't show the featured image for pages in the front end, and for that reason its meta box has been disabled.

If you have a plugin or some code to show the featured image for a page, you can restore its meta box and support in the page editing screen with these steps:

1. If you're using a child theme, paste the code shown in the next step in the functions.php file. Otherwise, create a file named custom-functions.php in your theme root folder.

2. Edit the functions.php file if you're using a child theme or custom-functions.php if you're not, and paste the following:


<?php
/**
 * Removes the featured image meta box in all post types but page.
 */
function custom_themify_remove_image_box() {
	$types = themify_post_types();
	foreach( $types as $type ) {
		if ( 'page' != $type ) {
			remove_meta_box( 'postimagediv', $type, 'side' );
		}
	}
}

/**
 * Enable featured image support for image.
 */
function custom_themify_enable_page_featured_image() {
	add_post_type_support( 'page', 'thumbnail' );
	remove_action('do_meta_boxes', 'themify_cpt_image_box');
	add_action('do_meta_boxes', 'custom_themify_remove_image_box');
}
add_action( 'after_setup_theme', 'custom_themify_enable_page_featured_image' );

3. Save the file. If you were editing it locally, upload the by FTP to the theme folder or child theme folder in your server.

Themify 7.5 has released! Please read the update notes.