You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this plupload meta box which allows only 1 image to upload. So far so good.
The thing is: since only 1 image will be allowed to upload i wanted the thumbnail size of the image displayed to be larger like "large" or "medium". A good sharp image centered by css in the meta box.
I looked through the source code and in the file inc/fields/image.php the function:
Hello there!
I have this plupload meta box which allows only 1 image to upload. So far so good.
The thing is: since only 1 image will be allowed to upload i wanted the thumbnail size of the image displayed to be larger like "large" or "medium". A good sharp image centered by css in the meta box.
I looked through the source code and in the file inc/fields/image.php the function:
on line 148 controls the image size displayed:
I wanted to change the value "thumbnail" to "medium" or "large" using a hook.
I followed some steps as stated on #141 but can't get it to work.
I basically copied the function and only changed the "thumbnail" to "large".
This is what i have on my functions.php right now:
So i replaced "thumbnail" with "large" but nothing happens. Zipp, nada, rien...
The image on the plupload meta box still outputs as thumbnail.
This should be straightforward but i'm kinda new to PHP.
Can anybody be kindly enough to point me in the right direction?
Thanks in advance.
The text was updated successfully, but these errors were encountered: