Increase the slider image height?
This support request was posted in Folly by deamakesthings
- deamakesthings February 7, 2013 at 5:25 pm
Hello,
I was wondering if there’s a way to edit the slider so that the images are taller. I found in the stylesheet where to increase the height of the div where the slider appears, but not sure how to edit the slider dimensions if at all.
Thanks!
DeaJuanfra Aldasoro February 7, 2013 at 5:36 pmHello Dea,
Thanks for writing.
You can edit the line #115 of the file header.php that is:
nice_image( array ( 'key' => 'slider-image', 'width' => 956, 'height' => 400 ) ) . "\n";
and replace 400 with the height in pixels you want to have for the slider images.
Best,
Juan.deamakesthings February 7, 2013 at 6:09 pmHey Juan,
Sorry to bother you again, but I think maybe you were thinking of the front page slider on theme “BBQ” – but I was actually talking about the slider in the portfolio posts in “Folly.” Right now those slider dimensions are 620 x 265.
I looked in single-portfolio.php and messed with those numbers but it’s not quite working – cutting off the bottom of image/border.
Juanfra Aldasoro February 7, 2013 at 6:30 pmYes, I was talking about BBQ. Sorry about that.
Well, in this case you need to touch a little bit of CSS too.
the php you need to edit is the following:
< ?php nice_image('width=620&height=NN&class=wp-post-image&src='.$src);?>
Replace NN with the amount of pixels you want to use. Please change that on lines #48 and #62
The css:
.slides_container{ height: NN+10px; }
I would recommend you to some extra space there (that’s why the “+10” is there)
Best,
Juan.
This topic is marked as resolved
Only the topic author can re-open this thread.