Tag Info

New answers tagged

0

Just like gurudeb said but remember that you will have to either replicate thumbnails or re upload the images so that the thumbnails in your defined size can be created


1

Have look at add_image_size and add to your theme's functions.php file: http://codex.wordpress.org/Function_Reference/add_image_size


2

This is most likely due to differing line-heights and font-sizes between the editor, and the live site. You can try setting the vertical-align on the image (middle), or css position: relative, and setting bottom or top plus or minus a number of pixels. If you do this often, it would be easiest to define a css class and assigning the class to the images. ...


0

I've used the code linked to below for just such a requirement. https://gist.github.com/seedprod/1367237 Doing this, you don't create a new image size every time you upload a file via the Media Editor, but only when necessary. So essentially, you just go in and add the call to resize the image "on the fly" in your templates where needed. So you'd add that ...


0

This isn't the most elegant answer... but it works! The 'WyPiekacz' plugin, although cool, has not been updated in three years. add_action('transition_post_status', 'check_featured_image_size_after_save', 10, 3); function check_featured_image_size_after_save($new_status, $old_status, $post){ $run_on_statuses = array('publish', 'pending', 'future'); ...


0

WordPress isn't natively friendly to such granular size management. Also it could take a considerable toll on humans to manage it, if manual. The common approach is to switch image sizes generation from the moment of upload to the moment of size being requested. So the sizes which are never actually used are never generated accordingly. If I am not ...


3

To add to the answer from @cristian.raiber, there is no function in Wordpress or php to detect screen sizes, and there will in all probabilty never be such functionality. Php runs server side, which runs before clients side which is browser side. As for php, and for that matter Wordpress, I cannot see any future implementation of any kind of function to ...


1

No, there isn't such a thing at the moment. However, there is a solution you could try if you're really keen on this. This is something I've used in the past and it's worked out fine, although it has its limitations. The solution: You could write a small JS function that gets the user's current screen resolution and have it written to a cookie. You're ...


0

I solved the issue as well. With reference to Josh Rodgers' answer, I had to log into my server's CPANEL, under "Software and Services", depending on how your server is set up, there is "Select PHP Version", then tick the "gd" box, save, and refresh your wordpress post or media page, then retry the upload. If you are looking at your wordpress via FTP, you ...



Top 50 recent answers are included