Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
Share
LinkBack Thread Tools
Old 02-21-2013, 01:59 AM   #1
HyperActive Warrior
War Room Member
 
belgianguy's Avatar
 
Join Date: Jan 2009
Posts: 397
Thanks: 92
Thanked 51 Times in 44 Posts
Default Wordpress: disabled thumbnails, still multiple images per upload on server

I don't want wordpress to create thumbnails of the images I upload. I only want the original image on my server.

I added this to my functions.php

Code:
function wplift_remove_image_sizes( $sizes) {
        unset( $sizes['thumbnail']);
        unset( $sizes['medium']);
        unset( $sizes['large']);

        return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'wplift_remove_image_sizes');
And this fixed the issue of having 4 copies of my image on the server. But there still is one copy left and I can't seem to get rid of it.
When I upload an image, a second copy in a different size is created.
I have disabled all my plugins and tried a different theme, but can't seem to find what is creating this second image.

Any thoughts?
belgianguy is offline   Reply With Quote
Old 02-21-2013, 08:40 AM   #2
Active Warrior
 
Join Date: Nov 2007
Location: , , USA.
Posts: 49
Thanks: 0
Thanked 4 Times in 4 Posts
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

you have to remove it from the database i think.. i had semilar problem with one of my websites...

mariya20 is offline   Reply With Quote
Old 02-21-2013, 10:21 AM   #3
The Owner
War Room Member
 
Pink Tulips008's Avatar
 
Join Date: Nov 2012
Posts: 441
Thanks: 85
Thanked 69 Times in 55 Posts
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

It also could be theme related.

Dont Forget To Give Thanks If I Helped You!
Pink Tulips008 is offline   Reply With Quote
Old 02-21-2013, 12:42 PM   #4
HyperActive Warrior
War Room Member
 
belgianguy's Avatar
 
Join Date: Jan 2009
Posts: 397
Thanks: 92
Thanked 51 Times in 44 Posts
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

Yes, it was theme related. I tried three themes and apparently they all created an extra copy of uploaded images
I fixed it with a fourth theme :-)
belgianguy is offline   Reply With Quote
Old 02-21-2013, 03:15 PM   #5
HyperActive Warrior
War Room Member
 
workoutstuff1's Avatar
 
Join Date: Jun 2009
Posts: 258
Blog Entries: 3
Thanks: 131
Thanked 42 Times in 40 Posts
Social Networking View Member's Twitter Profile 
Default Re: Wordpress: disabled thumbnails, still multiple images per upload on server

Quote:
Originally Posted by belgianguy View Post
Yes, it was theme related. I tried three themes and apparently they all created an extra copy of uploaded images
I fixed it with a fourth theme :-)
Way to go! But I do wonder if there is a plug-in that could have done what you were needing to do.

workoutstuff1 is online now   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Bookmarks

Tags
disabled, multiple, thumbnails, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 12:46 PM.