Tag Info

New answers tagged

0

This is likely a tweak the theme author made to make the images in the theme responsive or adaptive. You may want to look at adding "min-height" to your CSS and this should address your problem. https://css-tricks.com/almanac/properties/m/min-height/ Also another thing to note if you using "100%" anything the actual dimension is governed by the parent ...


2

Yes you can. See my working fiddle here: http://jsfiddle.net/MonkimoE/0wtgm8a1/ You need to add an id. example: <img class="img" id="imageid"..... Delete all atribute "data-width" and "data-height". because it will added automatically. Add this javascript: (you may change the '$' to 'jQuery' if doesn't work with your theme) <script> var ...


0

Add these code to your theme function file. add_image_size('mythumb', 350, 200, array( 'left', 'top' )); // third parameter is for cropped option, you can change that as your preference. the_post_thumbnail( 'mythumb' );// image with the new dimensions. Important: you need to regenerate thumbnails to make this work. You can use plugin for that. For ...



Top 50 recent answers are included