New Landing How can we help? Themeforest Theme Support Dante Thumbnail Positioning for Team Feature

Viewing 2 posts - 1 through 2 (of 2 total)
  • Posted in: Dante
  • #280821
    k_grinder
    Member
    Post count: 4

    Three of our team members, owners, have a different shot for their featured profile photo. It fits the layout better to have a full body image. See it here: http://tdp-arch.com/update/?team=john-torgerson

    The thumbnail images though crop/resize from the center placing their heads in an unnatural crop.I have tried finding and editing CSS, but I have not had luck finding any selectors that work. I’ve used thumbnail plugins to try to make this happen. Nothing has worked on the thumbnails on the Team pages.

    Perhaps, this is javascript and not using the thumbnails from WordPress. Anyway, is there a way to just get the thumbnails to crop from the top?

    Thank you

    #281227
    David Martin – Support
    Moderator
    Post count: 20834

    Are you using the team Page Builder asset to output those on another page?

    If you open the file: /dante/swift-framework/page-builder/builder/shortcodes/team.php

    Find this and amend the height as required:

        		$image_width = 270;
        		$image_height = 270;    		
        		
        		if ($item_columns == "1") {
        		$item_class = 'col-sm-12';
        		} else if ($item_columns == "2") {
        		$image_width = 540;
        		$image_height = 540;
        		$item_class = 'col-sm-6';
        		} else if ($item_columns == "3") {
        		$image_width = 360;
        		$image_height = 360;
        		$item_class = 'col-sm-4';
        		} else {
        		$item_class = 'col-sm-3';
        		}
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register