In tab advanced and in the responsive section the feature of hiding the elements still occupies space in the screen #30156
arthurcant
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
What problem is your feature request going to solve? Please describe..
My problem is when I use in the advanced tab in the Responsive section the feature of hiding elements in a specific screen like
Hide On Widescreen, Hide On Desktop, Hide On Laptop, Hide On Tablet Landscape, Hide On Tablet Portrait, Hide On Mobile Landscape, Hide On Mobile Portrait. When I am developing my sites in the Elementor the element that should be hidden by this feature is been showing in my screen, it break my layout.
Describe the solution you'd like.
To solve it currently, i am using css with media query. I separated the two sections one is the section that I want to show in Widescreen, Desktop, Laptop, Tablet Landscape, Tablet Portrait, Mobile Landscape screens I put an id called text-main, and the last one I want to show in Mobile Portrait I put an id call text-mobile. here is my code in CSS:
`
/*
WIDESCREEN E DESKTOP */
@media (min-width: 1367px) {
.e-con {
--content-width: 1280px;
}
#text-mobile {
display: none;
}
}
/* LAPTOP */
@media (min-width: 1201px) and (max-width: 1366px) {
.e-con {
--content-width: 1100px;
}
#text-mobile {
display: none;
}
}
/* Tablet Landscape */
@media (min-width: 1025px) and (max-width: 1200px) {
.e-con {
--content-width: 924px;
}
#text-mobile {
display: none;
}
}
/* Tablet Portrait */
@media (min-width: 881px) and (max-width: 1024px) {
.e-con {
--content-width: 780px;
}
#text-mobile {
display: none;
}
}
/* Mobile Landscape */
@media (min-width: 768px) and (max-width: 880px) {
.e-con {
--content-width: 728px;
}
#text-mobile {
display: none;
}
}
/* Mobile Portrait */
@media (max-width: 767px) {
.e-con {
--content-width: 360px;
}
#text-main {
display: none;
}
}
`
My logic is hiding the element has an id called text-mobile in Widescreen, Desktop, Laptop, Tablet Landscape, Tablet Portrait and Mobile Landscape screens and show the element has an id called text-mobile in Mobile Portrait and hiding the the element has an id called text-main. The solution that I am proposing is set up in the Responsive section that it act like my CSS's code.
Problem:
![image](https://private-user-images.githubusercontent.com/54423057/410036652-97c4fffb-60ab-4822-a6e9-5d923121d588.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjE0OTAsIm5iZiI6MTczOTY2MTE5MCwicGF0aCI6Ii81NDQyMzA1Ny80MTAwMzY2NTItOTdjNGZmZmItNjBhYi00ODIyLWE2ZTktNWQ5MjMxMjFkNTg4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIzMTMxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMzZGQ4NGU2MWI3ZjBiZjllOTIzMDQzMzc4ODk0YzhhYWI0ZjUxM2Y2YTk4Y2Q5YjYzN2QzYjA2NTZmY2IyOTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7EDOwxkNEbj1orvmAXCj9JR0SFUfD1Isxlw2OPQJHsk)
Result:
![image](https://private-user-images.githubusercontent.com/54423057/410036795-01ab5061-2180-43fd-be18-0ce0b419e6d3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2NjE0OTAsIm5iZiI6MTczOTY2MTE5MCwicGF0aCI6Ii81NDQyMzA1Ny80MTAwMzY3OTUtMDFhYjUwNjEtMjE4MC00M2ZkLWJlMTgtMGNlMGI0MTllNmQzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE1VDIzMTMxMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1MzhiMDM0OTIwY2JmMTNjZTM5ZWUwZTliZmZjOTQxOWZlY2FlN2Q2N2E3Y2YzMTUxNjllNTFiN2NjYzhmNzAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.QaJRs9ZgCkgkg5BLKqI4Ifk43kiPdjN9SHjTIhSrobQ)
Describe alternatives you've considered.
No response
Additional context
No response
Agreement
Beta Was this translation helpful? Give feedback.
All reactions