tagdiv slider gallery

Posted in: Newspaper
Post count: 159

What dimensions are used for the new slider?
At forum.tagdiv.com/create-an-image-slide-gallery the picture is fullsized but neither at your demosite nor on mine.

Post count: 6600

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

Post count: 159

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.
Post count: 6600

Hi,

We used those sizes with height fixed and width auto to not crop the images. Your solution will not work well with portrait images, just try to add a portrait photo and you will see that the person from photo is without head 🙂

Thanks

Post count: 159

Maybe you’re right, but I am using only landscape pics. 🙂 And the person without head is only in preview, with click on it becomes full w/h. 😉

Post count: 6600

Hi,

That’s ok :), I wanted you know how we tooth of this.

Thanks for sharing anyway!
Have a nice day!

Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.