php - Can a child theme over-ride the parent theme? -


i have child theme has custom post types. have correct code in place support thumbnails on these custom post types. have theme support added post-thumbnails.

add_theme_support('post-thumbnails', array('post', 'page', 'upcoming_events', 'directory_listings')); 

however, doesn't allow featured images show in custom post types. when add parent theme (which has post in array add_theme_support) custom post types show featured image.

is there way make featured images show in custom post type, without having modify parent theme (changes will, of course, lost when updated)?

use priority argument in add_action have function load little later..

function child_support() {     add_theme_support('post-thumbnails', array('post', 'page', 'upcoming_events', 'directory_listings')); } add_action( 'after_setup_theme', 'child_support', 100 ); 

this should run after parent themes hook (normal priority 10, developer have later priority, check if value above 100 if not working)


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -