The function that handles thumbnail size is already hooked with after_setup_theme
in \twentythirteen\functions.php
.
There is no use adding a if (!function_exists())
in child functions.php because the child functions.php is always loaded before. So this would be more logical to find this in the parent file.
The answer would be to set a different prority to your child function like :
add_action('after_setup_theme', 'watercolor_setup', 11);
But as you mentioned this does not work in your case. This makes me to perplex because it should override size. I guess you’ll have to code it in each template you want to modify in your child theme:
the_post_thumbnail(array(604,310));
Related Posts:
- Overriding methods in a child theme
- Overwriting Parent Theme’s Image Sizes
- Can’t locate custom image sizes defined by child theme
- Missing feature image link function
- How to customize the_archive_title()?
- How to override parent functions in child themes?
- remove_action on after_setup_theme not working from child theme
- Adding a second email address to a completed order in WooCommerce [closed]
- Include files in child theme functions file
- Child theme functions.php do I use php open and close tags?
- Declaring an instance of class included in parent theme from child theme functions.php
- Implementing DNS Prefetching with WordPress
- Child theme – overriding add_image_size by a child theme [duplicate]
- Is it possible to override this function/class in a child theme?
- Add options to featured image
- How to override functions.php in child theme?
- Generating Responsive Background Image Sizes in PHP
- Change parent theme file function in child themes functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Reuse variable in hook callback
- How to override filter in child theme?
- I created a child theme and it doesn’t work for some of the css files
- Make WordPress size and name images for Retina.js
- Unregister Nav Menu with fallback?
- Child Theme Not Overriding Parent Theme
- the_post_thumbnail fallback using hooks
- Display height and width properties with the_post_thumbnail() or related function
- Changes to functions.php not working
- Removing the first image in content
- How to store / access files in child theme folder
- How to set the jpg image compression for specific thumbnail sizes?
- Function to auto-set a featured image that is already in use
- Overwrite Parent Theme add_image_size in Child Theme
- Proper way of using functions in action hook?
- how to edit functions.php in a child theme
- Get the 5 lastest Featured Posts from a category
- Change size and crop medium_large images
- Include files in child themes, declare in functions.php
- Getting Featured Image Caption to Only Show if Populated
- How to remove set_post_thumbnail_size() in child themes?
- wp_get_attachment_image function size argument not working if I also add a custom class
- Can’t check if a post has thumbnail adding filter to get_post_metadata()
- Post thumbnail not showing in WP admin area for custom post type
- Echo tags used to describe the theme
- Backstretch.js and thumbnail sizes to reduce loading time
- Child theme within a child theme?
- Problem only while using require_once() within functions.php
- set_post_thumbnail when user is not logged in
- How can I change a function in a parent theme via a child themes functions.php
- How to stop twenty fifteen theme from cropping featured images?
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- show first 3 thumbnails of posts in different sizes [closed]
- Automatically include all php files in a child theme directory
- Pagination in relation to archive.php
- Can’t generate thumbnail images
- Load custom css in functions.php causing library issue
- How to edit classes in body tag?
- is there a way to remove featured image from blog page and single page
- How to hide image-url if no attachment?
- Can’t switch to a child theme using filters template, option_template and option_stylesheet
- overwrite code snippet from parent to child theme
- Unable to point the child theme directory even using get_stylesheet_directory()
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- get_template_directory_uri() links to child theme not parent
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Solution dealing with Child Theme / Parent theme functions
- get_template_directory() – references parent theme directory
- Show Featured Image in else statement
- resizing of thumbnails not working
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Featured Image keeps cropping
- struggling with syntax for the_post_thumbnail();
- Looking for Functions File that doesn’t Exist
- Any adverse effects of adding apply_filters to a function?
- Adding a schema code to one specific page using functions.php file
- Add Javascript code to functions.php childtheme
- How Do I Unhook This Parent Theme Function?
- Can You Set A Minimum Image Dimension For Resizing Images?
- Child theme, how to cut the functions.php file into several classes?
- Replace theme function
- Setting Up Child Theme To Take Priority
- How do I create a child theme from PowerMag theme
- How would I correctly implement a new if statement in a child functions file?
- Featured image on archive page based on post type
- Child Theme not loading multiple stylesheets
- Modified functions.php in Magazine Pro theme of Genesis. 500 error
- Help with is_page() and calling css for specific pages in a Child Theme
- Best way to add image to recent posts widget?
- Slider Thumbnail Size Issue [closed]
- How do I integrate my Child Theme into a Custom Template?
- Child Theme functions.php has no effect
- Is it possible to change parameters of Parent theme function in the Child theme?
- Preventing PHP Execution in Parent Theme
- Apply height and width for the_content() inside youtube video tag
- Why does my visual post editor break when I try to add a TinyMCE button?
- Functions.php in child theme that loads CSS file breaks website
- Unregistering custom tinymce plugin?
- Override parent theme function that is not hooked or in the functions.php file
- add_theme_support not outputting thumbnails
- Problem with Child-Theme using of foundation-framework [closed]