WordPress.org

Ready to get started?Download WordPress

Forums

Codepress Admin Columns
[resolved] Height of Featured Image is not adjusted with Width, when very small (2 posts)

  1. tzeldin88
    Member
    Posted 1 year ago #

    On my Posts admin-list, I am showing the Featured Image, and i set the width very small, to 6%. But the HEIGHT is not adjusted accordingly, so the image appears very tall and narrow. Can the height be set to AUTO somehow?

    Thanks!

    http://wordpress.org/extend/plugins/codepress-admin-columns/

  2. Tobias Schutter
    Member
    Plugin Author

    Posted 1 year ago #

    At this moment the images are not yet responsive, so the width and heights are fixed. You can however change the fixed widht and height by adding the following to your theme's functions.php:

    <?php
    
    // edit here: fill in your thumbnail height and width
    $my_height = 30;
    $my_width  = 30;
    // stop editing
    
    add_image_size( 'admin-columns', $my_width, $my_height, true );
    add_filter('cpac_thumbnail_size', function() {
        return 'admin-columns';
    });
    ?>

    You can find more information about this in the FAQ section of the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic