Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am using the Options Framework Theme from devinsays, but am having a "small" problem with the Image Upload functionality. Basically, I need to disable resizing on a specific upload-field, but keep it on all others.

I do realize that this functionality is not specifically dependent on this framework, but I haven't been able to find any resource on how to achieve this on a case by case basis for specific Theme Options, so I'm hoping someone here could help.

Any input would be appreciated!

share|improve this question
add comment

2 Answers 2

up vote 1 down vote accepted

WordPress will always create the additional images for "thumbnail", "medium" and "large" sizes. The options panel doesn't add an additional size- it just resizes the one you've selected using CSS.

If you want to override that CSS you can hook in an additional stylesheet that will override the id on that option.

share|improve this answer
    
I have already gotten rid of the default sizes, and replaced them with the necessary ones. The problem, however, is that one specific upload field needs to not be handled by wp_handle_upload - but just upload the file and not resize it - as it should retain its original size. So it's not really a CSS problem at this level, but finding a way to override the default upload-system. –  OleVik Jan 14 '12 at 20:02
    
wordpress , if not asked by the theme functions, will always keep also the original size. –  krembo99 Jan 17 '12 at 5:59
add comment

I don't believe there's a way to do this "per upload field", but if you use a plugin like Dynamic Image Resizer they are only generated (resized/resampled) when they are called on the front-end. Thanks!

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.