Elementor - 3 Big Responsive Image Tips and How to Swap Images with CSS

  Рет қаралды 15,551

Web Squadron

2 жыл бұрын

Using Elementor's Responsive Mode for Section and Columns is well know, but Tip 3 - may blow you mind!
00:00 Intro
00:17 Tip 1 - Sections
02:35 Tip 2 - Columns
03:20 Tip 3 - Swapping Images !!!!!!!!
Code for Tip 3 - add this into the Custom CSS for the image, and then add an alternate URL as below so that the image swaps when the screen size changes!
@media screen and (max-width:500px)
{
selector img{content: url('staging3.websquadron.co.uk/wp-content/uploads/Electro-e1642853507899.webp')
}
}
Music used:
Track: Will You Be Mine (Remix)
Free download: brokeinsummer.com/will-you-be-mine-remix
Artists: brokeinsummer.com
Contact: brokeinsummer.com/help
Music provided by Audio Library Plus
-- Get Elementor Pro here ---- trk.elementor.com/license
-- Of course, we're affiliated to them, but it helps to pay for resources to keep creating ace content for you :)
-- Book an Appointment/Consultation: calendly.com/info-28542
-- LinkedIn: www.linkedin.com/in/imran-siddiq-7320a74a/
-- Instagram: batswebsitedesign
-- Twitter: imranwebsites
-- Facebook: websquadrontraining/
PS: websquadron.co.uk
PPS: Contact us at info@websquadron.co.uk
PPPS: We only build with Elementor Pro

Пікірлер: 87
@antonio.carreira
@antonio.carreira 2 жыл бұрын
It always amazes (and saddens) me to see how few views your videos get. It looks like you put a lot of effort into those and I can always find really useful tips in each one of them. Maybe it's because Elementor's main target are newbies that drool over shinny gradient stuff but couldn't care less about the tech details, only to complain that their websites take ages to load. Great work mate, keep it up!
@websquadron
@websquadron 2 жыл бұрын
Many thanks. And yup I still have to break through the mass market or available audience. Eventually I hope it explodes and past videos get hit high. It may be one of those things that I got to keep plugging away at. Indeed, I estimate that I’m putting away about 20 hours a week on recording and editing. So far I’ve got videos uploaded until the end of March 2022 :)
@markbolden4540
@markbolden4540 2 жыл бұрын
This is a great video. I too was using multiple images and then hiding them with responsive settings. This makes way more sense! Thank you!
@websquadron
@websquadron 2 жыл бұрын
Glad it was helpful!
@borisnieminen677
@borisnieminen677 Жыл бұрын
Thanks for posting these excellent tips and the CSS. This tutorial belongs in the hall of fame. Cheers
@cesaroceano
@cesaroceano 2 жыл бұрын
Great work! Just found your channel and I'm on a binge watch. Awesome tips and tricks to enhance Elementor sites. You've got yourself a subscriber.
@websquadron
@websquadron 2 жыл бұрын
Great to have you :)
@CurtisHays
@CurtisHays 2 жыл бұрын
Dude, you are brilliant. This image swap saved me for logo image, I needed a different color on mobile due to different background color on mobile. Love your videos, keep it up!
@websquadron
@websquadron 2 жыл бұрын
Awesome. Wish stuff like this was standard inside of El already.
@IanMoss-vk4nk
@IanMoss-vk4nk Жыл бұрын
Dude, you are amazing! Thanks for your videos, I stumbled across you a few times this week alone for different issues. You have been a huge help. Thanks again!
@Sebastien_Dottin-SDOweb
@Sebastien_Dottin-SDOweb 2 жыл бұрын
Nice !! I have discover the option for the sections and column recently... Thanks a lot for the tips ! Also, a quick question... Is it better to have the CSS code directly into the style.css ? Better for performance ?
@websquadron
@websquadron 2 жыл бұрын
Yes, slightly in the style.css, but it'll be negligible.
@tabassumhasan922
@tabassumhasan922 2 жыл бұрын
Can’t thank you enough for insightful and super useful tips you come out in your videos. Just one question just so that I am clear: the second image that you scaled and copied was first uploaded in the library, isn’t it? Or can I just edit the original image and it gets saved as a separate image? Thank you very much in advance!
@websquadron
@websquadron 2 жыл бұрын
Yup, I added another. Don't risk losing your original image.
@krystianrajski2732
@krystianrajski2732 Жыл бұрын
Thanks! One of those precious tips to have in your Elementor toolbox 🙂
@answer4274
@answer4274 2 жыл бұрын
Thanks for the tip. 😀 Do I have to do this manually for each image on the site? Or maybe there is a good free plugin that can do this automatically?
@websquadron
@websquadron 2 жыл бұрын
My tip is manual (for now)
@nikos-t-profiler
@nikos-t-profiler 2 жыл бұрын
Great, awesome tip as always Imran!
@megaturbo
@megaturbo 2 жыл бұрын
Good tip, I can see you have inserted a webp image format, but not all of the browsers working with this one. Just in case, some one on older browsers, please pay attention. 😉
@websquadron
@websquadron 2 жыл бұрын
Yup, indeed.
@niceaf.marketing8249
@niceaf.marketing8249 2 жыл бұрын
Super cool man! Love what you're doing. Thanks homie!
@websquadron
@websquadron 2 жыл бұрын
Appreciate it!
@dawidkreator
@dawidkreator Жыл бұрын
5:00 Thanks for this! Awesome
@Rejoin_2023
@Rejoin_2023 2 жыл бұрын
Great tip, thank you, and such a simple solution too.
@christianlecuyer6380
@christianlecuyer6380 2 жыл бұрын
Awesome tip #3 :) How can I be sure that the mobile version is indeed in use?
@websquadron
@websquadron 2 жыл бұрын
I checked on an actual device and that's exactly what came through. You could even leave the image blank and add alternate code for @media up to 500px, and @media when the minimum is 501px
@KevsGuide
@KevsGuide 2 жыл бұрын
fantastic info thanks when you make a copy of an image,. do you upload the 2nd one or can you make a copy within the library? How can you get a 1600 x 900 to be 85 kb?
@websquadron
@websquadron 2 жыл бұрын
Bulk Resize can help to get it down in filesize. Sometimes I add another copy or sometimes I just make a copy from the URL in Media Library.
@martijns.7029
@martijns.7029 2 жыл бұрын
Great tutorials, great channel. One question, how to solve this with dynamic background images?
@websquadron
@websquadron 2 жыл бұрын
Let me check on that
@Em-Aar
@Em-Aar Жыл бұрын
How can we swap image in Elementor Slider, it doesn't give any option. Would this code work?
@websquadron
@websquadron Жыл бұрын
That will need some custom css to sort out.
@advanced-developers
@advanced-developers Жыл бұрын
i like 3rd tip
@MaliceVanRow
@MaliceVanRow 2 жыл бұрын
A video based on my comment in the FB group. Nice.
@websquadron
@websquadron 2 жыл бұрын
Don't recall that comment - but either way - glad it helps :)
@EPHONIC
@EPHONIC Жыл бұрын
So great but…If working with dynamic content using say ACF or Pods, how does one allow the different images to change without a client (as an example) having to go change code/CSS? Is it advised to create a field that is for a desktop image, a separate field for tablet, and mobile in a custom post where someone can designate each size?
@websquadron
@websquadron Жыл бұрын
A very good point and a tricky one as asking users to upload multiple image may confuse them but as long as you train them - then additional fields could be good. Then you just have to ensure the right dynamic field is returned.
@antonionocella2003
@antonionocella2003 5 ай бұрын
And if I have more than 1 img? The selector img how will works ?
@danplumadore647
@danplumadore647 2 жыл бұрын
Awesome!
@websquadron
@websquadron 2 жыл бұрын
Thank you! Cheers! It can make such a difference for performance :)
@JeramieSaito
@JeramieSaito Жыл бұрын
Not sure if tip 3 will work but ill try. I'm still not understanding it really I'm not techy and I had a developer build my site but he is done with it and now I'm on my own
@websquadron
@websquadron Жыл бұрын
You may need to hire someone to help you out, also depends on how the site was built. I could offer to look but I charge Consultation prices for that.
@CallmeKaram
@CallmeKaram 2 жыл бұрын
This is great 👌
@websquadron
@websquadron 2 жыл бұрын
I'm sure someone will tell me there's an issue with it, but being able to swap out now is a big thing for performance :)
@Barvinok66
@Barvinok66 2 жыл бұрын
For some reason, it doesn't copy an image. It just replace it. Any suggestions why? I dont have a PRO lisence
@websquadron
@websquadron 2 жыл бұрын
Yup that’s what it’s meant to do as in replace.
@KevsGuide
@KevsGuide Жыл бұрын
@@websquadron so this tip only works for the pro version?
@websquadron
@websquadron Жыл бұрын
@@KevsGuide Indeed and we always recommend that you use EL Pro rather than 3rd party plugins
@cupa
@cupa Жыл бұрын
Супер! Очень полезный урок
@Jumajtau
@Jumajtau 2 жыл бұрын
I think WP doesn't leave the copies of the edited images inside the Media Library. Or I am missed something?
@websquadron
@websquadron 2 жыл бұрын
I've never had an issue with that as the edited version is saved and remains there :)
@xMuninn
@xMuninn Жыл бұрын
Any way of doing this simply when using dynamic images? (Say the featured image?)
@websquadron
@websquadron Жыл бұрын
I’ll need to think about that
@andreas-stricker
@andreas-stricker Жыл бұрын
Can't believe it's still not possible to select a different image for different screen sizes in Elementor.
@teresabell5240
@teresabell5240 18 күн бұрын
would love for this to be as easy as presented, but when I change the image for the responsive it changes it in all 3 modes. How do you get it to isolate to just the one device?
@websquadron
@websquadron 18 күн бұрын
@media
@zinnurc1
@zinnurc1 2 жыл бұрын
I am stuck with one pic and can't get it to work!!!!! was wondering if you can help me out here? your consulting link doesn't work... I was trying to make an appointment.... Thanks
@websquadron
@websquadron 2 жыл бұрын
Hi Best to email for consultation: info@websquadron.co.uk
@humans.from.earth.
@humans.from.earth. Жыл бұрын
How in the name of green grass does a page builder, which is trying to be mobile responsive not have an ability to do this natively? Am I missing something obvious, I mean there is little responsive icons next to a lot of things in Elementor, but images nah who needs that lol. I must be missing something here. By the way, on an old device like iphone 7, I have to scroll a bit to make the swapped image appear. Also by the way, you make great videos. Thank you!
@websquadron
@websquadron Жыл бұрын
We'd love it if it could do more. An iPhone 7 may be running an old IOS so needs updating.
@Bjorn-hp3uv
@Bjorn-hp3uv Жыл бұрын
Hey, thanks for great content! I had to add a ";" after the URL because I got an error "Expected RBRACE" and I think that it solved it. However, when I load my page and inspect, it still serves the bigger sized img. I have cleared cookies and purge cache. Any ideas why it still serves the bigger img? thanks for all the great vids and help, much appreciated!
@websquadron
@websquadron Жыл бұрын
It shouldn't still serve the larger image unless you need to Regen the CSS and Purge the Server (not just the site).
@Bjorn-hp3uv
@Bjorn-hp3uv Жыл бұрын
@@websquadron Thanks for the quick reply. I will try it :)
@shopbeonline
@shopbeonline 10 ай бұрын
Is there a way do this with carousels and gallery pictures? Or does one have to create a carousel specifically for desktop and another specifically for mobile?
@websquadron
@websquadron 10 ай бұрын
If you add images to the new carousel widget then yes it could be done.
@sorrellsour
@sorrellsour 8 ай бұрын
First I would like to say how much I appreciate your videos - really clear instruction that gets to the point. Not so easy to find that quality. Thank you. I would love it if you could you give any more details on how this could be done with a slider or carousel? @@websquadron
@aaronphillips4543
@aaronphillips4543 Жыл бұрын
Whenever I switch to mobile the same desktop picture is there. If I swap out the picture while in mobile it also updates the desktop version. Am I doing something wrong? Any help is appreciated.
@websquadron
@websquadron Жыл бұрын
It will depend on the Screen Size, and has the image been added completely in CSS?
@aaronphillips4543
@aaronphillips4543 Жыл бұрын
@@websquadron I figured out shortly after I was expecting the widget to do that but it wouldnt. When I switched to the section background it then worked as it should.
@MahinMiron
@MahinMiron 6 ай бұрын
checkerbox effect isnt showing, please help
@mooltech
@mooltech 2 жыл бұрын
Sir please make more video regarding Mobile responsiveness. There is no specific tutorials about mobile responsiveness.
@websquadron
@websquadron 2 жыл бұрын
Yup, I'll do some more of those. We do cover it in our Site Playlist Tutorials when we go through page building step by step.
@SANDMANxvx
@SANDMANxvx 8 ай бұрын
Has there been an update to Elementor Pro or am I missing something? I no longer seem to be able to insert smaller/alternative images for mobile or tablet? The icon is no longer there! Please help
@websquadron
@websquadron 8 ай бұрын
It is there as I can still select it. Which version of EL are you on?
@SANDMANxvx
@SANDMANxvx 8 ай бұрын
3.19.2
@websquadron
@websquadron 8 ай бұрын
i just checked now, and it is there. I can't comment on what else you have on your website.@@SANDMANxvx
@SANDMANxvx
@SANDMANxvx 8 ай бұрын
Hmm I wo der if the new image optimiser update has anything to do with it. Thanks for your help anyway
@SANDMANxvx
@SANDMANxvx 8 ай бұрын
After further investigation, and as far as I can tell, you can only swap the main hero image for smaller/alternative images. The other images on the page don't do this.
@advanced-developers
@advanced-developers Жыл бұрын
good
@assafmanor1157
@assafmanor1157 2 жыл бұрын
The problem is that Elementor doesn't allow this image responsive choosing when it comes to a post's feature image.
@websquadron
@websquadron 2 жыл бұрын
Indeed it doesn't but the Post Image should be fine as they fall into the Cover layout.
@assafmanor1157
@assafmanor1157 2 жыл бұрын
@@websquadron I'm not sure if I understand your answer. There is the Feature image Widget that let's you dynamically choose the feature image for your post. Alas, there is no option to change the feature image responsively resulting in a need to load a large unneeded and unwanted file in mobile.
@websquadron
@websquadron 2 жыл бұрын
@@assafmanor1157 If you're using Elementor Pro for your Single Post template, then you can modify in responsive mode the width and height to suit how it should look. Yes, the Featured image can't be changed easily without some HTML coding.
@assafmanor1157
@assafmanor1157 2 жыл бұрын
@@websquadron Do you have a link to some explanation about the HTML coding to change the featured image?
Synyptas 4 | Жігіттер сынып қалды| 3 Bolim
19:27
kak budto
Рет қаралды 1,3 МЛН
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 30 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 57 МЛН
Дубайский шоколад
0:11
чекун дмитрий
Рет қаралды 940 М.
Poor those abandoned children #kindness #lovely
0:11
Magical AI Animals
Рет қаралды 8 МЛН
Baby shows SURVIVAL skills 💦🧼
0:27
Fun Fun TV
Рет қаралды 24 МЛН