• Resolved kense

    (@kense20xx)


    I’ve noticed that when adding anything into the ‘height’ field under the ‘Post Featured Image’ dimensions, it hides the image from the site. Strangely, the width field doesn’t produce the same effect. I haven’t been able to debug myself to work out what is happening. Any ideas?

    Tove Theme 0.1.3, Gutenberg 11.5.1, WordPress 5.8.1

    • This topic was modified 3 years, 2 months ago by kense. Reason: Added Wordpress version
Viewing 11 replies - 1 through 11 (of 11 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @kense20xx,

    I can’t replicate this on my end. Can you post a link to a page where the bug can be found?

    — Anders

    Thread Starter kense

    (@kense20xx)

    Hi Anders. I’ve tried on a couple of different browsers. Take a look at this link and you’ll see a demo where there are images above the post titles:

    https://www.themetalmagazine.com/news/

    In this example, in the ‘Post Featured Image’ dimensions I added 300px to the height box and nothing in the width box, which rather than limiting the images to 300px in height seems to have the result of hiding the images. If I add a number to the width box while there is still an entry in the height box, the images are still hidden. But if I clear the height box and add a number to the width box, the image width is transformed appropriately and is displayed.

    Theme Author Anders Norén

    (@anlino)

    Hi @kense20xx,

    It seems like those images have their src attribute set to a base64 gif value, like this:

    data:image/gif;base64,R0lGO…5BAEAAAAALAAAAAABAAEAAAIBRAA7

    Are you using some lazyloading plugin for images? If so, try disabling it and see if that makes the images show up. I’m wondering if the lazyloading plugin reads the images as not being there and therefore skips loading the actual images.

    (Tove doesn’t interact with the src attributes of any images, so it’s not directly theme related.)

    — Anders

    Thread Starter kense

    (@kense20xx)

    Hi Anders. Turning off the lazy loading does display the images, but very strange that it was working in every other variation (nothing in height or width, or entry in width) and not with that height setting alone. I’m guessing some kind of Gutenberg / more general FSE bug rather than a Tove issue?

    Theme Author Anders Norén

    (@anlino)

    @kense20xx My guess is that the lazy loading plugin is somewhat faulty in detecting whether the image is actually visible on the page or not, so it might not be a FSE bug either (or not directly, at least). It’s possible the plugin hasn’t been tested with FSE yet, since it doesn’t ship properly until 5.9.

    Thread Starter kense

    (@kense20xx)

    Good call. Thanks for looking into it, I’m glad it’s nothing that you need to worry about at your end!

    Thread Starter kense

    (@kense20xx)

    Is there any way of deleting the link to the website from this thread? I can’t edit the post myself.

    Theme Author Anders Norén

    (@anlino)

    @kense20xx You can find info on how to reach out to the forum moderators here: https://www.ads-software.com/support/guidelines/#contacting-the-moderators

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Moderator note:

    Unless it is an extreme case, posts and replies are not edited here.

    Forum topics will only be edited or deleted if they represent a valid legal, security, or safety concern.

    See https://www.ads-software.com/support/guidelines/#deleting-editing-posts and https://www.ads-software.com/about/privacy/

    Thread Starter kense

    (@kense20xx)

    @sterndata Is it not a sufficient security concern that any nefarious visitors to the site would know what theme was being used, should there ever be any security issues with the theme or WordPress in the future?

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Your theme is always known. There are many URLs on the site that include the theme’s name.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Bug with ‘Post Featured Image’ dimensions?’ is closed to new replies.