Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Can't optimize homepage slider images for desktop. laptop and phone

specular multi purpose business theme homepage slider
    • 5 years, 10 months ago vkeith17
      Participant

      Hi Codeless,

      I got a programmer to help me as you guys suggested for my site http://www.carlevabay.com, and we made the child theme as you suggested. We were able to slow down the speed of the homepage slider images so that they and the text are readable, hooray! BUT we still have another issue which is described by my programmer as follows:

      “Hi Codeless, I’ve been having some trouble with the responsiveness of the homepage slider. While the images that I’ve selected are fine on desktop, on mobile they don’t look very good after applying this css rule that you gave me: @media (max-width: 979px){ .header_wrapper { background: rgba(255,255,255,0.45) !important; } .codeless_slider_swiper.parallax_slider { height: 470px !important; min-height: 470px !important; } .swiper-slide.swiper-slide-active { background-size: cover !important; } }. The images on the slider were truncated and cutoff instead of being made to fit. Some of the slides when viewed on a mobile were so cut off that only a small portion of the image was even visible (for example, on the slide showing the night view, you could only see part of a tree, not the house at all). I don’t have screenshots of that, but it was only optimized for desktop and with all other devices the slider images were cut off to varying degrees.

      After realizing that, I changed the
      .swiper-slide.swiper-slide-active { background-size: cover !important;} }
      rule to
      .swiper-slide.swiper-slide-active { background-size: 100% 100% !important; } }
      which made the image fit, but it distorted the aspect ratio of the images causing a drop in image quality. You can see an example of one of the distorted slides on an iPhone here: https://www.dropbox.com/s/rtlp63e39wxolyl/IMG_5782.PNG?dl=0
      and here’s another one from iPhone: https://www.dropbox.com/s/xl4xt5wxnesf52v/IMG_5786.PNG?dl=0
      and here it is on a Macbook using Firefox, showing the bottom part of the image cut off: https://www.dropbox.com/s/f4pbp3rmn0shfw3/Screenshot_2019-08-31%20Carleva%20Bay%20Villa%2810%29.jpg?dl=0

      and here’s another one from Macbook using Firefox: https://www.dropbox.com/s/t27qzk3zmt9tejl/Screenshot_2019-08-31%20Carleva%20Bay%20Villa%286%29.jpg?dl=0

      Neither of these options are acceptable and I want to know if there is any way to set different images on mobile, and on desktop and larger screens that will make the slider more responsive without altering the image in any way, but still making it fit.”

      Please let us know! And thanks for all your help with this.
    • 5 years, 10 months ago Mirela
      Participant

      Hello,

      You have added custom CSS in Specular > General > Custom CSS box and in Appearance > Additional CSS as well. The code was targeting the same section in theme and thus conflicting. You have to add custom css in only one place that is theme’s Custom Css box.

      I removed the conflicting code and this is the result in mobile: https://ibb.co/nkn1VPZ
      Let us know.

      Best regards!

Viewing 1 reply thread

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password