• Hello ,

    I am using hueman theme
    I actually want my featured image and post image would be the same size. That means i would use same 198*300 image for featured and post

    For real example, i want featured image would be like this website https://fullmoviewatchonline.com/ (which also using hueman theme)

    I would be grateful if i get exact code or direction to change it.

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi @najrj89

    A pist of answer…
    As I, myself, wanna change the size of the image in the features post (homepage), I was wondering, like you. The link you shows is clear: I went to the code source and saw the php. It brings me the idea to go to content-features.php (caution: if you have a child theme, which is hardly recommended, then you transfert (via FTP), the file from the hueman files to the distant hueman-child file).
    You go back to your admin, then you open content-features.php: you’ll see this part of code, nearly at the beginning
    <?php the_post_thumbnail(‘thumb-large’); // only difference to content.php ?>
    <?php elseif ( ot_get_option(‘placeholder’) != ‘off’ ): ?>
    <img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-medium.png” alt=”<?php
    It shows that the image is fixed to be the medium one.
    Now here is the specific sizes:
    ‘thumb-small’ 160px x 160px
    ‘thumb-standard’ 320px x 320px
    ‘thumb-medium’ 520px x 245px
    ‘thumb-large 720px x 340px

    Now if you wanna search further, try to see here
    https://www.ads-software.com/support/topic/which-dimensions-for-the-preview-thumbnails?replies=3

    Thread Starter najrj89

    (@najrj89)

    Thanks Scribelle , i appriciate your answer

    I tried this before in my Hueman Child: Theme Functions (functions.php)
    it didnt work

    i think it is something related to placeholder’

    if anybody figure it out please let me know

    //function alx_setup() {
    // Enable title tag
    add_theme_support( ‘title-tag’ );

    // 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’, 198, 300, true );
    add_image_size( ‘thumb-standard’, 198, 300, true );
    add_image_size( ‘thumb-medium’, 198, 300, true );
    add_image_size( ‘thumb-large’, 198, 300, true );

    // Custom menu areas
    register_nav_menus( array(
    ‘topbar’ => ‘Topbar’,
    ‘header’ => ‘Header’,
    ‘footer’ => ‘Footer’,
    ) );
    }//

    You’re welcome.
    I tried too in function.php, adding a different size, and changed some code. But nothing.
    I tried a lot of differents way too, as I red the complete documentation of Hueman.
    Nothing works (for the moment).
    As I’m stubborn, I’m still searching . . .

    Another pist (but I suppose you get it).
    https://www.ads-software.com/support/topic/changing-size-of-thumbnails-on-home-page?replies=5

    Thread Starter najrj89

    (@najrj89)

    I still didnt get it yet

    i have read most of the recent thread related to featured post i think

    I hope someone expert will give me the ultimate solution

    right. hope too ??

    Thread Starter najrj89

    (@najrj89)

    well i replaced “thumb-medium” instead ‘thumb-standard’ to modify the featured image like this website( https://fullmoviewatchonline.com/ ) but still no result.

    `<?php if ( has_post_thumbnail() ): ?>
    <?php the_post_thumbnail(‘thumb-standard’); ?>
    <?php elseif ( ot_get_option(‘placeholder’) != ‘off’ ): ?>
    <img src=”<?php echo get_template_directory_uri(); ?>/img/thumb-standard.png” alt=”<?php the_title(); ?>” />
    <?php endif; ?>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I want my featured image and post imgae would be the same size’ is closed to new replies.