Ask your WordPress questions! Pay money and get answers fast! (more info)

Additional size of pictures in gallery - karma theme

  • SOLVED

Hi,
I use the karma-theme from themeforest. I would like to use the portfolio, with 1 column but with sizes 500*500, 500*333 and 333*500

And also with 3 colums 300*300 and 2 colums 400*400

(ofcourse only 1 size per page but be able to have different templates for the pages)

Is this possible to do? I have already got help to have the frames.

example: http://www.arzish.se/krux/new-gallery-20130307

Thank you in advance!

//malin

Answers (3)

2013-03-21

Gabriel Reguly answers:

Hi Malin,

I can do it for you.

Estimated time is tomorrow, can you wait?

Regards,
Gabriel


Malin Sundqvist comments:

Gabriel,
It's OK with tomorrow!
If you want I'll be happy to let you do it.


Gabriel Reguly comments:

Hi Malin,

Great, I'll also be happy to do it.

Thanks for your patience.

Regards,
Gabriel

2013-03-21

Daniel Yoen answers:

for add image size, just put this line in functions.php

add_image_size("portfolio", 500, 333, true);

ref :

<?php add_image_size( $name, $width, $height, $crop ); ?>

to get thumbnail :

the_post_thumbnail("portfolio");

hope this help :-)


Malin Sundqvist comments:

Hi, where in functions.php do I need to put this?
And do I put one line for each size? Are they possible to choose if I do so?


Daniel Yoen comments:

top or bottom is OK, yes you need one line each size :-)

add_image_size("portfolio-small", 500, 500, true);
add_image_size("portfolio-medium", 500, 333, true);
add_image_size("portfolio-large", 333, 500, true);

add_image_size("portfolio-another-small", 300, 300, true);
add_image_size("portfolio-another-large", 400, 400, true);


note : if images already uploaded, you need to regenerate thumbnails with this plugin : http://wordpress.org/extend/plugins/regenerate-thumbnails/

hope this help :-)


Malin Sundqvist comments:

Doesn't work. I can't see them as template-porfolio sites.
Don't I need to have new templates for each site in "pages attributes"?


Daniel Yoen comments:

In template-porfolio file, you need to replace existing thumbnail with new thumbnail name:

the_post_thumbnail("portfolio-small");

or you can send me template-porfolio file and I'll edit it for you :-)

2013-03-21

Fahad Murtaza answers:

I recently solved the same problem for someone at

http://www.wpquestions.com/question/showChronoLoggedIn/id/8155

Please send me the access details if you want me to look into it.