You can call add_image_size()
again to update the existing image size. Assuming it is called medium_large
(Events Manager Pro is a paid plugin so not very much people have it) you can do something like:
<?php
function update_medium_large_size_wpse216595() {
add_image_size( 'medium_large', 600, 255, array( 'center', 'top' ) );
}
add_action( 'init', 'update_medium_large_size_wpse216595', 11 );
Then you will need to regenerate the thumbnails. Although I am not 100% sure that init
is the right hook for the job.
p.s. You can check this if you are using a child theme.
p.s. 2. I am not sure that I understand the center cropping correctly. You many need to play with it a bit. array( 'center', 'top' )
will crop the picture in the center (‘trimming’ the right and left part).
Related Posts:
- image_size with respect to aspect ratios
- Missing feature image link function
- Issues with title-tag and document_title_parts
- Import WordPress XML File from Within Functions.php
- Define custom Page Template without its own .php file
- Does hooking into the same action multiple times drain memory?
- How to influence the information displayed on widget inside wp-admin
- Extract image from content and set it as the featured image
- Is there a hook or function I can use to display all theme files being used on a current page?
- Issue with get_theme_mod returning a blank value instead of the saved value
- Add action hook conditionally – only when home.php in use
- Show modified time if post is actually modified
- why doesnt is_home() work in functions.php
- Automatically set the featured image
- How to create thumbnails for PDF uploads?
- Implementing DNS Prefetching with WordPress
- Get recent posts with thumbnail
- Help me to understand wp_header() and wp_footer() functions
- How can I tell if I’m on a login page? [duplicate]
- In WooCommerce I need to modify the thankyou.php page [closed]
- How can I add an extra WooCommerce hook
- Why get_header() or get_footer() does not run twice if called in the same php file?
- 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
- Linking thumbnail to full size image
- Generating Responsive Background Image Sizes in PHP
- Remove Page Title from Static Frontpage
- update_post_meta is Updating with two page id
- Replace admin header logo with an image
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Show Featured Image in else statement
- is_home() not working in functions.php file
- Change custom featured image size in twentythirteen child theme
- How to conditionally add a widget via a hook in functions.php
- resizing of thumbnails not working
- Featured Image keeps cropping
- How to place a div inside a function that creates a div
- show all the posts thumbnails
- Changing the text of Upload/Insert on Posts and Pages Screen
- struggling with syntax for the_post_thumbnail();
- include w_thumbnail_src in function?
- Filter for replacing the WP_query object for a given category
- How to add or delete default value theme options while activate and deactivate theme
- WordPress comment processing . Default unapproved comments detection before posting
- Warning at top of website & top menu gone
- Custom image sizes showing in Classic Editor only when upladed directly to post
- Which filter fires upon setting a featured image
- Does hook have an effect on increasing the page load?
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- Save_post – Warning: Cannot modify header information
- What is the earliest Hook a Script can use?
- Populate acf-field, depending on block name
- How to use WP conditional tag in a functions.php with OCEANWP Theme?
- custom error message for empty username and password using authenticate filter not working
- How Do I Unhook This Parent Theme Function?
- remove_filter function to unhook twentysixteen parent theme function
- Get post_author email for Zapier Integration
- Can You Set A Minimum Image Dimension For Resizing Images?
- Calling hooks in functions
- Featured image on archive page based on post type
- How to add custom column into custom post, when field is select
- How can I stop the hook from breaking the login/logout function?
- Printing medium sized image
- Sticky – Featured Image
- True email confirmation for registration (keeping unvalidated users from user table)
- WordPress hooks to call a function inside a construct
- WordPress undefined function error on using add_action() in functions.php
- Frontend Feature image upload not work
- Best way to add image to recent posts widget?
- How to echo the translated custom field?
- Slider Thumbnail Size Issue [closed]
- Remove Featured Images from Posts Older Than a Certain Date
- Function the_content
- save_post hook – headers already sent?
- Apply height and width for the_content() inside youtube video tag
- Init hook for header send
- Set thumbnail from URL, by grabbing image in functions.php
- add_theme_support not outputting thumbnails
- Full size image option removing problem
- Add custom fields after post/page title
- Force resize for all video content
- Unhook the comment form in Buddypress
- Why wp_ajax hooks doesn’t work?
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- Image width issue in IE [closed]
- Why functions metaboxes is causing White Screen in Admin [closed]
- How do I add functionality to images?
- How to hook wp_mail to add a custom email as BCC for each sent email?
- Is mytheme_post_thumbnails() still necessary?
- delete_term is not working properly with add_action()
- Get category of post inside save_post hook
- Create section wit form
- Log in and out using custom pages, no logout confirmation and redirects for logging in and out 2023
- Copy and Modified WooCommerce function is_coupon_valid [closed]
- Function attached to cron job not running but will run if called manually
- How can I able to exclude ‘Category’ and ‘Tag’ slug from the URL in WordPress without reloading to new site?
- Redirecting after login except for a specific page
- Second featured image only shows in metabox preview after saving a post in the wordpress editor
- No src and sizes attributes present on WordPress thumbnail images; the smallest image size is loaded irregardless of viewport size
- add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scaled image(s) instead of hard cropped