January 6, 2015 at 1:00 pm
Link: *Login to see link ( I can email you a temp dashboard login if you like )
Hi Ben,
I’m rebuilding my site and would like to display all images on pages (shop, portfolio, blog, product etc) in their original ratio without cropping them?
Currently the images display with bits missing as per these screenshots where the bottom of the swing picture is missing:
*Login to see link
&
*Login to see link
I don’t want to have to change picture ratios as I upload them as that is a hassle for the type of photo heavy site I will have.
I have found these instructions which explain how to do set images to soft crop for an older version of WordPress, but can’t connect the dots to make this work in the Virtue Premium Theme
Could you help me with the following points:
– Do you have an easy easy way to implement what I want?
– How can I tell the theme to display the images without cropping
– Can I use the following code: add_image_size( $name, $width, $height, $crop); to add suitable sizes with the ‘soft-crop’ function? If so, can I just paste it at the end of the Child Theme functions file?
– Can I use the following type of code format: the_post_thumbnail(‘medium’): // The Medium Size version to instruct the theme? If so, do you know the exact code and where it goes?
FYI: My current Child Theme functions.php file is only this: ( I made it following instructions here so don’t know if it is actually working as i’m new to all this:
<?php add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
wp_enqueue_style( ‘child-style’, get_stylesheet_uri(), array( ‘parent-style’ ) );
}
remove_action( ‘wp_head’, ‘wp_generator’ ) ;
remove_action( ‘wp_head’, ‘wlwmanifest_link’ ) ;
remove_action( ‘wp_head’, ‘rsd_link’ ) ;