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
- get_template_directory_uri pointing to parent theme not child theme
- 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]
- Child theme – Overriding ‘require_once’ in functions.php
- Include files in child theme functions file
- Redeclare a function in a child theme
- How to override a function when isn’t at functions.php
- 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
- One Child Functions.php for Multiple Child Themes
- Removing custom background and header feature in child theme
- Automatically set the featured image
- How to override function in functions.php of parent theme?
- Implementing DNS Prefetching with WordPress
- Get recent posts with thumbnail
- override parent theme configuration in child functions.php
- Child theme – overriding add_image_size by a child theme [duplicate]
- syntax for remove_filter in parent theme with class
- Is it possible to override this function/class in a child theme?
- How to display the_post_thumbnail if a post has one or otherwise display the first image in a post?
- Add options to featured image
- How to override functions.php in child theme?
- Overriding core functions in child theme
- Linking thumbnail to full size image
- Generating Responsive Background Image Sizes in PHP
- Override parent theme function that is not hooked or in the functions.php file
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Function in Child Theme not overriding Parent Theme function [duplicate]
- 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
- Child theme – copied some files from parent to child website still uses parent files
- Add a Post Thumbnail to an RSS Feed with custom size
- 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
- add sidebar area to header of child theme
- Unregister Nav Menu with fallback?
- Child Theme Not Overriding Parent Theme
- Why are image thumbnails cropped proportionally (not per dimensions)?
- the_post_thumbnail fallback using hooks
- Display height and width properties with the_post_thumbnail() or related function
- Changes to functions.php not working
- How to override enqueued styles using a child theme
- Should I ask a theme developer to use locate_template rather than require_once
- Setting featured image with function, 1 part not working
- Using the child theme functions.php to change the customizer.php on parent theme
- Child theme functions.php not executing
- 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
- Make “sidebar template” the default template for new pages
- override parent theme configuration in child functions.php
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- Overwrite Parent Theme add_image_size in Child Theme
- Proper way of using functions in action hook?
- Twenty Eleven Child theme error when attempting to use a rewritten function
- img width and height attributes being set by get_the_post_thumbnail
- How do I get a child theme to load scripts from the parent theme?
- how to edit functions.php in a child theme
- Get the 5 lastest Featured Posts from a category
- How to display a default image for post thumbnail using functions.php?
- Best practice when altering a parent theme function inside a child theme?
- How to make child theme inherit parent custom theme options [closed]
- 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()
- Avoid loading css from parent theme
- Add Featured image column into wordpress admin on pages AND posts
- Post thumbnail not showing in WP admin area for custom post type
- Creating a child theme – functions.php code issue
- 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
- Twentyten Child Theme: header images display messed up in admin panel
- 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?
- Add other social networks to TwentyNineteen_SVG_Icons class in child theme?
- Why is functions.php file in child not initializing and over-writing parent?
- show first 3 thumbnails of posts in different sizes [closed]
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- Reuse variable in hook callback
- Automatically include all php files in a child theme directory
- Set spesific size of featured images
- Override the function twentytwelve_scripts_styles in a child theme
- Add custom function to a theme with child theme’s functions.php
- Pagination in relation to archive.php