Home Forums Weaver Xtreme Theme How can I prevent Weaver registering header thumb images for media library

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17664
    timreeves
    Participant

    Hi there,

    after using Weaver II Pro for some years, I’m doing my first site with Weaver Xtreme. Things are sort of OK, needs getting used to. One thing I do miss is the ability to define different Menus / Menu behaviour for mobile devices. But my problem for now is: Every time I upload an Image to the media gallery it creates a useless image that I can never use.

    It’s the call to set_post_thumbnail_size() in functions.php. This is always done, even though I have set “Hide Header Image:” to “Hide on all devices”, so it can never be needed. So then I tried setting the “Suggested Header Image Height:” to 0, but the test “if (!$height)” on line 113 foils that. Nor does setting it to -1 work.

    SO, it would seem the only way out is to comment out the line 144, which does cure the problem – until the next theme update…

    Help!

    Yours minimalistically,

    Tim

    #21557
    scrambler
    Moderator

    As far as I know Weaver has nothing to do with what is created when you upload images in the media library, this is all WordPress.

    You have setting in Settings > Media  to decide the resolution of the various images WordPress creates when you upload and image.

    As far as menu features missing from weaver II, you need to elaborate.

    #21558
    Weaver
    Keymaster

    It seems to me that the semantics of the set_post_thumbnail_size call has changed since Weaver was first introduced for WP 3.0 – it used to apply only to the header image.

    But now things within WP have changed a bit, and I missed the side-effects of that change on image sizes auto-generated for the media library, and no one else but you has ever noticed and reported that before.

    As a result, there seems to be no reason whatsoever for that call any more, and as nearly as I can tell, it will not have any backward compatibility issues to remove it – but all the existing theme-width x header-height images will remain in everyone’s media library unless manually deleted. And Weaver II has been doing the same thing as well, so this is not new to Weaver Xtreme.

    Weaver Xtreme 1.1.4 will remove this unnecessary “feature”. Thank you for noticing and reporting!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.