New Landing How can we help? Themeforest Theme Support Dante Resize Team Member Images

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Dante
  • #278257
    jbadrov
    Member
    Post count: 43

    Is it possible to resize team member images on this page – http://temp.bpadvisors.com/?team-category=corporate-leadership ?

    #278314
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Do you want to resize the height or width of team member?
    Thanks
    Mohammad

    #278409
    jbadrov
    Member
    Post count: 43

    I would like to resize the height of the team member image.

    #278651
    David Martin – Support
    Moderator
    Post count: 20834

    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';
        		}
    #278814
    jbadrov
    Member
    Post count: 43

    I’ve changed the height in all of the “height” lines below, but they did not impact the size of my images. Am I missing something?

    $count = 0;
    $image_width = 270;
    $image_height = 350;

    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’;

    #279049
    David Martin – Support
    Moderator
    Post count: 20834

    Can you add your FTP details?

    Thanks.

    #279140
    jbadrov
    Member
    Post count: 43
    This reply has been marked as private.
    #279435
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Those details are not working for me, can you check those?

    #279799
    jbadrov
    Member
    Post count: 43
    This reply has been marked as private.
    #280164
    David Martin – Support
    Moderator
    Post count: 20834

    You are outputting them using the blog asset and not a team asset from the page builder, this changes everything.

    1. You need to upload and activate the supplied child theme.

    2. Inside the child theme, add this code to the functions.php file: http://pastie.org/private/ij9bowzarfda7axpz8sqw

    3. Change the images sizes located in that code.

    #280271
    jbadrov
    Member
    Post count: 43
    This reply has been marked as private.
    #280557
    David Martin – Support
    Moderator
    Post count: 20834

    For me they look the same, could you provide screenshots of what you see?

    Please see this:

    #280593
    jbadrov
    Member
    Post count: 43
    This reply has been marked as private.
    #280618
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    .blog-item.type-team figure img {
      max-height: 300px;
      object-fit: cover;
    }

    – Kyle

Viewing 14 posts - 1 through 14 (of 14 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