Posted in: Newspaper
Jul 22, 2014 at 3:19 pm
Hi,
The slider gallery has two fixed height size, with sidebar or without, the images are re-sized at 483px height for a 3 column layout and at 357px for a 2 column layout and keep the width auto.
Here is the code: http://screencast.com/t/2DewR8P2RaQ and here are defined the sizes: http://screencast.com/t/ZZI6MpdNjS
Thanks
Jul 22, 2014 at 5:03 pm
Ok, thanks. But isn’t it better to use width:100% and height:auto? Looks much prettier without ugly borders… 🙂
My hack for now and maybe others are interested in this:
functions.php change this:
if(td_global::$cur_single_template_sidebar_pos == 'no_sidebar') {
$td_temp_image_url = wp_get_attachment_image_src($image_id, 'td_0x483'); //1074 x 483 - for big slide 3 columns
} else {
$td_temp_image_url = wp_get_attachment_image_src($image_id, 'td_0x357'); //0 x 357 - for big slide 2 columns
}
to this:
if(td_global::$cur_single_template_sidebar_pos == 'no_sidebar') {
$td_temp_image_url = wp_get_attachment_image_src($image_id, 'art-slide-big'); //1074 x 483 - for big slide 3 columns
} else {
$td_temp_image_url = wp_get_attachment_image_src($image_id, 'art-slide-med'); //0 x 357 - for big slide 2 columns
}
Now the pictures are full width.
-
This reply was modified 12 years by
mbasche.
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
