Important notice: we will respond to all open ticket requests up until November the 1st. After this date, we will be unable to process the ticket requests here on Ticksy.

Okay
  Public Ticket #687177
Slider Layout & Size
Closed

Comments

  •  1
    Max started the conversation

    Hi, I wanted to know if there is a way that the slider will crop the pictures in the "slider" mode as it does on the "carousel" mode and adjust it automatically to a landscape layout. 

    My goal is to present the posts main image in a portrait layout in the blog list, but to crop it into "landscape" layout on the slider, similar to what is done on the "carousel" mode.

    The thing is that no matter what I choose in the image layout in slider (landscape/portrait) - it keeps on getting the always the same: portrait, and very big :/

    Is there a way to adjust the size & layout?


    Thanks,

    Max.

  •  1,845
    Elated replied

    Hi Max,

    1) Unfortunately there is no such option :( landscape thumbnail is used only for carousel slider type... Even if we change in code to use landscape image size, image will be stretched to take full width, and additional adjustment to change that demands more custom coding, but unfortunately we're not in position to accept that amount of custom work. It is way out of support scope. :(
    Hope you'll understand.

    However, if you want just to use landscape thumbnail for slider type, than you have to change this function in blog-slider.php file located in your theme's folder/modules/shortcodes/blog-slider/blog-slider.php,

     find this function and add this code with else if command: http://screencast.com/t/K9AXfrZLTPrA

    else if( $carousel_type == 'slider' ){
                $size = 'allure_elated_blog_slider_landscape';
                $image = get_the_post_thumbnail($id, $size);
            }
    

    Hope this will help.


    The Elated Support Center has been moved to our centralized support platform. 

    Please note that any existing tickets prior to this change will be answered right here on Ticksy, and in due time. 

    If you wish to submit a new support request, for all new inquiries please head on to our Help Center.

    Elated Themes is part of Qode Interactive – the home of 300+ premium WordPress themes.

    Don’t forget to sign up for our newsletter and be the first to find out all the latest news.