Skip to content
  • Hot
  • Top
  • New
0
vote

You have ... votes left in this category for this week!

completed

Add hook control for archive thumbnail and product/post detail page featured image

Dave Hilditch shared this feature

February 25, 2019

I’ve tried to make External Images work automatically on ALL the themes, but there is just so much variety in theme coding out there that it’s just not possible to make it fully automatic.

Some themes correctly use the wordpress functions to grab the thumb or featured image, and in these cases, it will work perfectly straight out the box.

Other themes grab images directly from the database. In these cases, we have to filter their output and replace it with ours. Different themes place these filters on a variety of different hooks.

Other themes even remove the default actions from the main featured image hooks or thumbnail hooks and move the hooks elsewhere.

In these final two cases, to guarantee compatibility with *every* theme, we need to provide:

  1. An action hook selector for where to place the featured image and a checkbox for whether we should remove other actions from this hook
  2. Same as above but for thumbnail hooks
  3. A filter hook selector to override thumbnail generator – we normally get this right, but this may occasionally be required

1 Comment

  1. Dave H.
    August 30, 2019 @ 1:18 pm

    The plugin was improved significantly to handle this – there is one option now in the plugin that may need to be selected depending on how your theme handles these things.

    We’ve erred on the side of caution and you may find 2 images displaying in your thumbnails (rather than no image) – if this happens in your theme, visit the settings page and enable the option to fix double images.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *