Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #3258

    hi.

    i want to change the size of the preview pictures of the 4-colum portfolio entries.

    as you can see here:

    http://npshare.de/files/729bfe56/Unbenannt.JPG

    i know that the width is acutally 182px. i want the same for the height, cause i’ll review many music albums. and their covers are quadratic, you know.? :/

    i couldn’t find any options, either in the css’ or in the other files.

    can you help me? o:

    #41397

    Hey,

    Near the top of functions.php you’ll find this code:

    #####################################################################
    # Define Thumbnail sizes
    #####################################################################

    $k_option['custom']['imgSize']['S'] = array('width'=>70, 'height'=>50); // small preview pics eg sidebar news
    $k_option['custom']['imgSize']['M'] = array('width'=>182, 'height'=>130); // medium preview pic for portfolio with 4 columns
    $k_option['custom']['imgSize']['M3'] = array('width'=>256, 'height'=>170); // medium preview pic for portfolio with 3 columns
    $k_option['custom']['imgSize']['M2'] = array('width'=>405, 'height'=>230); // medium preview pic for portfolio with 2 columns
    $k_option['custom']['imgSize']['L'] = array('width'=>500, 'height'=>235); // image for blog posts and 1 column portfolio
    $k_option['custom']['imgSize']['XL'] = array('width'=>850, 'height'=>400); // big images for fullsize pages and mainpage slider

    You can modify the image sizes here – bear in mind that the images already uploaded will not be resized for you, you either need to re-upload the images or use a plugin such as Regenerate Thumbnails to change the images to their new sizes.

    You would also need to adjust the CSS to reflect the new image sizes as the content area for the image is defined as the correct width and height for the original image sizes. If you need help with this, please post the direct URL to the page which needs adjusting along with the details of the new image sizes from functions.php.

    James

    #41398

    Okay, i changed the code for the size in the CSS correctly. The picture size works now, but…

    http://npshare.de/files/e540dba1/not.jpg

    damnit. what else do i have to change? :/

    #41399

    Hey,

    can you post a link to your site please so that we can investigate css first hand. Thanks!

    #41400

    yep. it’s http://zex0r.de/. again. (:

    #41401

    Hey,

    A simple CSS adjustment is required to take care of this.

    Open up style.css and find this code (around line 1054):

    .framed_one_fourth {
    height: 150px;
    padding-bottom: 10px;
    }

    You can either adjust the height from 150px to 202px like this:

    .framed_one_fourth {
    height: 202px;
    padding-bottom: 10px;
    }

    or remove the height attribute entirely like this:

    .framed_one_fourth {
    padding-bottom: 10px;
    }

    The adjustment from 130px to 182px in height was a change of 52px (hence the jump from 150px height to 202px height).

    James

    #41402

    Works fine! Thank you. (:

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

The topic ‘change size of 4-column-portfolio pictures’ is closed to new replies.