ViewedCrop thumbnails

  • Author
    Posts
  • Margo Pavloff
    Participant

    Hi,
    how can I crop thumbmails to the upper edge and center? Now it cuts faces in vertical pictures(
    http://pastenow.ru/687eb846e1af11bf81b5a5976decbf98

    #4788
    iLen
    Keymaster

    Hi, test the option Yuzo setting -> Styling -> Background size

    I await your response

    #4790
    Lê Bách (KTS)
    Participant
    #4795
    Lê Bách (KTS)
    Participant

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 223, 137, true );
    add_image_size( ‘steadyincome-featured’, 555, 305, true ); //featured
    add_image_size( ‘steadyincome-blog’, 224, 224, true ); //featured
    add_image_size( ‘steadyincome-archive’, 329, 230, true ); //featured
    add_image_size( ‘steadyincome-featuredfull’, 370, 185, true ); //featured full width
    add_image_size( ‘steadyincome-widgetthumb’, 70, 70, true ); //widget
    add_image_size( ‘steadyincome-widgetfull’, 330, 220, true ); //widget full width

    #4796
    iLen
    Keymaster

    Go to: Styling -> Thumbnail size -> Thumbnail This will take the image of small size

    #4797
    Lê Bách (KTS)
    Participant

    I have set the same parameters as the instructions.

    I want to show pictures:

    add_image_size( ‘steadyincome-widgetthumb’, 70, 70, true ); //widget

    But fail, you can look over: https://top10websitereviews.com/web-hosting/hostwinds-reviews.html

    https://top10websitereviews.com/wp-content/uploads/2017/05/Eset-logo.png
    to
    https://top10websitereviews.com/wp-content/uploads/2017/05/Eset-logo-70×70.png

    Please help. Thanks you very much.

    File: function.php

    function mts_after_setup_theme() {
    if ( ! defined( ‘MTS_THEME_WHITE_LABEL’ ) ) {
    define( ‘MTS_THEME_WHITE_LABEL’, false );
    }

    add_theme_support( ‘title-tag’ );
    add_theme_support( ‘automatic-feed-links’ );

    load_theme_textdomain( ‘steadyincome’, get_template_directory().’/lang’ );

    add_theme_support( ‘post-thumbnails’ );
    set_post_thumbnail_size( 223, 137, true );
    add_image_size( ‘steadyincome-featured’, 555, 305, true ); //featured
    add_image_size( ‘steadyincome-blog’, 224, 224, true ); //featured
    add_image_size( ‘steadyincome-archive’, 329, 230, true ); //featured
    add_image_size( ‘steadyincome-featuredfull’, 370, 185, true ); //featured full width
    add_image_size( ‘steadyincome-widgetthumb’, 70, 70, true ); //widget
    add_image_size( ‘steadyincome-widgetfull’, 330, 220, true ); //widget full width

    register_nav_menus( array(
    ‘primary-menu’ => __( ‘Primary’, ‘steadyincome’ ),
    ‘secondary-menu’ => __( ‘Secondary’, ‘steadyincome’ ),
    ‘mobile’ => __( ‘Mobile’, ‘steadyincome’ )
    ) );

    if ( mts_is_wc_active() ) {
    add_theme_support( ‘woocommerce’ );
    }
    }

    #4798
    iLen
    Keymaster

    Only the Pro version can be put the name of the custom size.
    Screenshot: https://gyazo.com/a104c3383ae6a97db982e97532956c6a

    #4804
Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.