Home › Forums › Weaver Xtreme Theme › How can I prevent Weaver registering header thumb images for media library
- This topic has 2 replies, 3 voices, and was last updated 11 years, 4 months ago by
Weaver.
-
AuthorPosts
-
April 25, 2015 at 21:59 UTC - Views: 2 #17664
timreeves
ParticipantHi 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
April 26, 2015 at 09:56 UTC - Views: 1 #21557scrambler
ModeratorAs 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.
April 27, 2015 at 16:29 UTC - Views: 2 #21558Weaver
KeymasterIt 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!
-
AuthorPosts
- You must be logged in to reply to this topic.

