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 #1200538
Elated image slider
Closed

Comments

  •  2
    rivmediawagga started the conversation

    How do I override the css you have in the theme for the elated image slider when viewed on resolutions under 800px wide?

    I've tried but can't get it to work.

    You have:

    @media only screen and (max-width: 800px) {
    .eltd_image_gallery_no_space .eltd_image_gallery_holder{
    height: auto !important;
    }

    .eltd_image_gallery_no_space ul {
    height: auto !important;
    width: 100% !important;
    }

    .eltd_image_gallery_no_space ul li {
    float: none;
    }

    .eltd_image_gallery_no_space ul li.-before,
    .eltd_image_gallery_no_space ul li.-after {
    display: none;
    }

    .eltd_image_gallery_no_space ul li div {
    height: auto !important;
    width: 100% !important;
    }

    .eltd_image_gallery_no_space ul li img {
    height: auto;
    width: 100%;
    }

    .eltd_image_gallery_no_space .controls {
    display: none; 
    }
    }

    This makes each image take up the full width of the screen so for portrait images (that have a long height) this takes up way too much room vertically. 

    I would prefer the slider function the same way that it does on wider resolutions, so I need to override the above CSS in my child theme css.



  •  1,845
    Elated replied

    Hello there,

    This is default images behavior to maintain original proportions, but it can changed using Custom Css. For instance, you can set each image to have fixed height using slightly different code from previous one 

    @media only screen and (max-width: 800px) {
    .eltd_image_gallery_no_space .eltd_image_gallery_holder{
    height: auto !important;
    }
    .eltd_image_gallery_no_space ul {
    height: auto !important;
    width: 100% !important;
    }
    .eltd_image_gallery_no_space ul li {
    float: none;
    }
    .eltd_image_gallery_no_space ul li.-before,
    .eltd_image_gallery_no_space ul li.-after {
    display: none;
    }
    .eltd_image_gallery_no_space ul li div {
    height: auto !important;
    width: 100% !important;
    }
    .eltd_image_gallery_no_space ul li img {
    height: 450px;
    width: 100%;
    }
    .eltd_image_gallery_no_space .controls {
    display: none; 
    }
    }

    which will fix images height to 450px, or whatever height you need, or yet another solution is to fix images height and to set default width, not 100% necessarily using this code

     

    @media only screen and (max-width: 800px) {
    .eltd_image_gallery_no_space .eltd_image_gallery_holder{
    height: auto !important;
    } .eltd_image_gallery_no_space ul {
    height: auto !important;
    width: 100% !important;
    } .eltd_image_gallery_no_space ul li {
    float: none;
    } .eltd_image_gallery_no_space ul li.-before,
    .eltd_image_gallery_no_space ul li.-after {
    display: none;
    } .eltd_image_gallery_no_space ul li div {
    height: auto !important;
    width: 100% !important;
    } .eltd_image_gallery_no_space ul li img {
    height: 400px!important;
    width: auto;
    } .eltd_image_gallery_no_space .controls {
    display: none; 
    } }

    Please let us know if this was helpful and if there is anything else we can do for you.

    Thanks.


    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.

  •  2
    rivmediawagga replied

    I can't use either of those options :-(

    The first one still has each image taking up the full width of the screen, only the height is messed up so the images are out of proportion so its even worse than the original code (see first code screenshot)

    And on the second lot of code, the images are smaller and in proportion but no longer in-line so not usable either.  (see second code screenshot)

    Again, I was hoping to have the slider display the exact same way it does on resolutions larger than 800px. It works perfectly fine there. 


  •  2
    rivmediawagga replied

    Bit disappointed guys with your initial reply (which was unusable) and no reply since :-(

    I've managed to resolve this on my own by completely removing the css from stylesheet.min and adding it to my child theme. The slider works much better now and users don't have to scroll passed 20 odd images on their mobile (nightmare!)

    My only concern though will this interfere with all the other custom css I have?

    At the moment I am adding it within wordpress > Appearance > customize > Additional CSS so I can see the changes live in the site, but once done I will add it to my child theme's style.css file (this is what I usually do)

    By also have stylesheet.min in my child theme, will there be any conflicts with the css in my child theme's style.css ???

  •  1,845
    Elated replied

    Hello there,

    We are so sorry for the late response.

    We are pleased to hear that the issue is solved according to your intentions.

    Also, please note that some of the theme default behaviors predefined in theme core files and we often do not suggest our users to change those files, unless they are quite familiar with programming, since they might case some other issue.

    Please let us know if there are some styling issues and we will try to assist you there.

    Thanks.


    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.