Tag Info

New answers tagged

0

Its probably best to create a child theme and make this change in the child theme...otherwise, when a new update for the twenty fourteen them comes out, it will revert back to 474px.


1

The wp_get_attachment_img_src( $attachment_id ) function returns an array consisting of: The URL to the img width height To get the actual attachment/thumbnail/featured image ID, you want to use $att_ID = get_post_thumbnail_id( get_the_ID() ); in the loop. Outside the loop, you would have to get the Post ID somehow to feed it in as get_the_ID() ...


1

I found the same issue here and the solution from there works. The solution is as simple as pasting this: $content_width = 2000;// Value higher than your new 'large' width in functions.php Explanation copied from there(user Chip Bennett): I believe your issue is that the value set for the global $content_width variable (which is 640px in ...


0

I found the same issue here and the solution from there works: Settings in 'Media > Settings' is ignored when inserting images The solution is as simple as paste this: $content_width = 2000;// The value I want in functions.php Explanation copied from there(user Chip Bennett): I believe your issue is that the value set for the global ...


2

What you are asking for is called "upscaling images". Wordpress does not do that by default (with reasons). 2 solutions: no physical upscaling: display your images via CSS (and not as IMG html tags), using background-size: cover; a plugin that upscale images. Here is one (untested).



Top 50 recent answers are included