kahncious
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] What size is the largest image size in this theme?Ulmavi, a “work around” to directly limiting image size (which I have not figured out how to do elegantly in this theme) is to adjust the Website Max-Width under Appearance > Theme Options (make sure Dynamic Styles is On to do this). I found this answer here:
https://www.ads-software.com/support/topic/changing-the-theme-widthWould still love to learn to directly limit image resizing in this theme if someone’s got an answer.
Best,
MikeOK, I have hacked at it and read some more. I have solved the issue by putting the entire function and all its variables in the child theme’s functions.php file. I had assumed that I could just put in some variables and not others but that does not appear to be the case. I would love to get confirmation on that before I mark this as resolved. Thanks!
This is everything that I have put in the child functions file (only the medium and large thumbnail sizes were changed):
function alx_setup() { // Enable automatic feed links add_theme_support( 'automatic-feed-links' ); // Enable featured image add_theme_support( 'post-thumbnails' ); // Enable post format support add_theme_support( 'post-formats', array( 'audio', 'aside', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video' ) ); // Declare WooCommerce support add_theme_support( 'woocommerce' ); // Thumbnail sizes add_image_size( 'thumb-small', 160, 160, true ); add_image_size( 'thumb-medium', 520, 347, true ); add_image_size( 'thumb-large', 720, 480, true ); // Custom menu areas register_nav_menus( array( 'topbar' => 'Topbar', 'header' => 'Header', 'footer' => 'Footer', ) ); }
Forum: Themes and Templates
In reply to: [Hueman] What size is the largest image size in this theme?The functions.php file has image sizes:
\\
// add_image_size( ‘thumb-small’, 160, 160, true );
// add_image_size( ‘thumb-medium’, 520, 245, true );
// add_image_size( ‘thumb-large’, 720, 340, true );
\\(I discovered that from the following post:
https://www.ads-software.com/support/topic/small-medium-and-large-image-sizes )And I have started a post to try to update image sizes, but I didn’t get into how to limit the max size, which perhaps may be done in the same place:
https://www.ads-software.com/support/topic/update-child-themes-functionphp-for-image-thumbnail-sizesBest,
MikeForum: Themes and Templates
In reply to: [Hueman] What size is the largest image size in this theme?Hi Ulrica,
I unfortunately don’t have an answer but I have the same question, as I am also concerned about image blurriness. From a quick test it looks like Featured images on a post expand to almost 1000 pixels (but the default size is 720 so it will absolutely look blurry at 1000). It would be great to have someone confirm the max sizes. My thought would be to customize the code so that it does not expand images beyond their native maximum, in order to retain sharpness. Anyone have code adjustment for that?
Hope it’s OK to “piggyback” on your post, Ulrica, as it seemed directly relevant.
Best,
Mike