Column width vs. thumbnail size – please add both to configuration

Viewing 2 posts - 1 through 2 (of 2 total)
  • #13786
    daniellek
    Participant

    Hi,

    I’ve changed split of columns (*), and now Featured Image is scaled up from thumbnail which is only 700px wide and looks awful.

    I’ve changed thumbnail size hardcoded into functions.php (**), but it’s not elegant and I’d have to changed after each pinboard upgrade.

    Could you add both values as configurables to Pinboard?

    (*) Done that via custom CSS in Theme Options -> Layout:
    #sidebar { width: 20%; }
    .twothirdcol { width: 80%; }

    (**) unified diff:
    --- a/pinboard/functions.php 2013-03-11 12:30:10.000000000 +0000
    +++ turns-me-on.eu/wp-content/themes/pinboard/functions.php 2013-04-01 17:56:26.484806577 +0000
    @@ -40,13 +40,13 @@
    // Add support for post thumbnails and custom image sizes specific to theme locations
    add_theme_support( 'post-thumbnails' );
    add_image_size( 'slider-thumb', 1140, 395, 1 );
    - add_image_size( 'blog-thumb', 700, ( pinboard_get_option( 'crop_thumbnails' ) ? 300 : 9999 ), ( pinboard_get_option( 'crop_thumbnails' ) ? 1 : 0 ) );
    + add_image_size( 'blog-thumb', 900, ( pinboard_get_option( 'crop_thumbnails' ) ? 300 : 9999 ), ( pinboard_get_option( 'crop_thumbnails' ) ? 1 : 0 ) );
    add_image_size( 'teaser-thumb', 332, ( pinboard_get_option( 'crop_thumbnails' ) ? 205 : 9999 ), ( pinboard_get_option( 'crop_thumbnails' ) ? 1 : 0 ) );
    add_image_size( 'gallery-1-thumb', 432, 432, 1 );
    add_image_size( 'gallery-2-thumb', 268, 268, 1 );
    add_image_size( 'gallery-3-thumb', 268, 164, 1 );
    - add_image_size( 'image-thumb', 700, 9999 );
    - add_image_size( 'video-thumb', 700, 393, 1 );
    + add_image_size( 'image-thumb', 900, 9999 );
    + add_image_size( 'video-thumb', 900, 393, 1 );

    // Allows users to set a custom header image
    add_theme_support( 'custom-header', array(

    #13791
    daniellek
    Participant

    I’ve have also had to change this line:

    add_image_size( ‘teaser-thumb’, 400, ……..

    Before change it was 332px.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.