Support for Envato Buyers Forums OldCar Slider cropping images vertically

Viewing 5 reply threads
  • Author
    Posts
    • #6345
      maudubem
      Member

      Hi there,

      When i upload a vertical image, the slider is cropping the images vertically, not auto adjusting the size to fit the image. How can i solve it?

      Many thanks

    • #6355

      Hi

      Can you send the question page link? I will send you some custom css to fix that.

      Thanks

    • #6364
      maudubem
      Member

      Hi Johnny,

      Sorry, I forgot to put the link: http://www.abd.org.br/blog/index.php/novo-showroom-na-capital-paulista/

      thanks

    • #6373

      Hi

      The image is cropped by WordPress thumbnail setting, so, you have to edit includes/theme-functions.php, find the following code about at line 78

        $attachmentimage=wp_get_attachment_image($image->ID, 'image_slider' );

      Change it to

        $attachmentimage=wp_get_attachment_image($image->ID, 'full' );

      And put the following CSS into custom style.css or OldCar options > Custom code > CSS code

      .flexslider img{margin:auto;}

      I will also improve this issue in the next version.

      Thanks

    • #6401
      maudubem
      Member

      Thanks a lot. Work like a charm.

    • #6406

      It’s my pleasure!

Viewing 5 reply threads
  • You must be logged in to reply to this topic.