Missing Slider Mobile 750x400 Size Addition #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Images like
https://autentical.nl/wp-content/uploads/sites/42/2017/08/el-rocio-1-750x400.jpg
fail loading on homepage slider mobile forautentical.nl
and other slider images with same format on mobile are no longer available. This is also the case on other locations like on theautentical.es
homepage.Not clear why they have gone missing and why there was no such
add_image_size
option (anymore). Likely cause is removal or change of theadd_image_size
for that format. This could also be the cause for why so many images are missing. Only not clear why the older images with that format were removed after changes were made.This pull request includes a minor addition to the
functions.php
file. The change introduces a new custom image size for mobile slider images, which was previously missing from the site as size and for which images are missing on server. New size will have to be generated on the server withwp-cli
See instructions that will follow.Theme Enhancements:
functions.php
: Added a custom image sizebase_hotel_img_mobile
with dimensions 750x400px for mobile slider images.Current Image Sizes
Verify new size is registered
to verify newly added size after child theme update with newly added image size use:
Regenerate thumbnails for newly added image size
Verification