htweedley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Image Block Settings does nto show Image Size optionThanks again bcworkz. I actually did try the image size regen plugin idea, but it did not work. Your suggestion about the add_image_size() gave me something to go on and got me exploring. I have found the following information:
In wordpress settings>media>
thumbnail = 150×150
medium = 300×225
large = 1024×1024My theme has a custom size called “Post Image” = 900 x 9999. This is not shown in Gutenburg image sizes drop down.
For an example image, in Gutenburg, the Image Sizes drop down does the following:
thumbnail = 150×150
medium = 300×225
large = 1024 x 768
full size = 4608 x 3456If I flip over to classic editor, the image sizes options give this:
thumbnail = 150×150
medium = 300×225
large = 629×472 (this is the “Post-Image” SIZE!)
full size = 4608×3456
custom size = 1024 x 768 (this should be the large size!)If I take an image where the Image Size drop down has RECENTLY re-disappeared (since I last went through and did my “classic editor>large>gutenburg>resolve>make block” workaround in Gutenburg), I can verify it has dimensions 1024×768 in the remaining dimensions boxes, and the SRC points to 1024×768. I then flip to classic editor and it shows as Custom Size 1024×768 (and the Large size option gives 629×472).
If I take an OK image, and add code to my function.php to show the “post-image” in Gutenburg drop-down, I can confirm the Post-Image size in Gutenburg is for 629×472.
Checking the uploads folder I have files auto generated by wordpress for the following:
88×88 (theme custom thumb size)
150×150 (default thumb)
300×225 (medium)
900×675 (Post-Image)
768×576
1024×768 (large)
1280×960 (theme cover image)
OriginalI don’t know where the 768×576 came from – maybe the twentynineteen theme.
I don’t really understand PHP or how wordpress works in general, but I feel like maybe there is an issue somewhere where wordpress is internally conflating the theme custom size and the large size, and this is breaking the drop down in Gutenburg?
Maybe this is in fact an issue with Lovecraft theme compatibility with Gutenburg. Reverting to TwentyNineteen theme did not fix the problem but perhaps it would not suffer the problem?… I will try to contact that theme developer unless you have any other suggestions?
Regards,
Hayden
Forum: Fixing WordPress
In reply to: Image Block Settings does nto show Image Size optionThanks BCWorkz.
The plan is a dedicated wordpress plan on Bluehost. It came with WP already installed ready to go.
I inspected the code for the image settings pane. The following code block is either entirely present or entirely missing:
`<div class=”components-base-control”><div class=”components-base-control__field”><label class=”components-base-control__label” for=”inspector-select-control-56″>Image Size</label><select id=”inspector-select-control-56″ class=”components-select-control__input”><option value=”https://cursedascent.com/wp-content/uploads/2019/08/great-roof-second-attempt-150×150.jpg”>Thumbnail</option><option value=”https://cursedascent.com/wp-content/uploads/2019/08/great-roof-second-attempt-300×225.jpg”>Medium</option><option value=”https://cursedascent.com/wp-content/uploads/2019/08/great-roof-second-attempt-1024×768.jpg”>Large</option><option value=”https://cursedascent.com/wp-content/uploads/2019/08/great-roof-second-attempt.jpg”>Full Size</option></select></div></div>
I tried pasting the original image file URL from “bad” image block to a new image block, and it still resulted in no image size drop-down displayed.
I tried pasting the URL of a “good” image block into a new image block and it resulted in a “bad” image block.
I tried duplicating a good image block and then changing the URL to a “bad” image and this was OKAY result.
I tried disabling ALL plugins and reverting to twenty-nineteen theme – still the same behavior in my existing posts; however i did not recreate the issue in a new post although I only tried adding five images. On one post the issue manifests in the first couple of images, on another it does not manifest until 29 images into the post.
Something interesting is I migrated two affected posts and the website itself from wordpress.com and looking at the originals in wordpress.com editor ALL images are OK with correct sizing menus. On my migrated .ORG site, the image size problem is apparent on both migrated posts and new posts.
EDIT:
I tried reverting to classic editor and found SOME of the funny image blocks had size flagged as “custom” but were equal to the “large” size in block editor. I manually set these to large, then re-activated block editor. Re-opening the post showed errors on those blocks, but I could select ‘resolve’>’convert to block’. The end result was that the “image size” drop down re-appeared and was set to large.
Some OTHER funny image blocks did not show ANY size options in the classic editor.
I am struggling to find any consistency or patterns here that I can hone in on to troubleshoot this issue.