Responsiveness
-
Dear Support,
please take a look at the screenshots.WP 5.3 / Theme Twenty Seventeen
Version 3.15.3Is there an option that I overlook, in which it is possible that images on which faces are left or right, remain centered on mobile or smaller resolutions?
-
Hi @ku3hn
Using TwentySeventeen theme in the header like that you will have to fine tune the slides one by one by overriding WP styles.
You could add something like this, with the -400px moving the image more to the right
@media only screen and (max-width: 800px) { .has-header-image .custom-header-media .metaslider img { object-position: -400px; } }
Alternatively disable the whole TwentySeventeen header design:
@media only screen and (max-width: 800px) { .has-header-image .custom-header { height: auto !important; } .has-header-image .custom-header-media { position: static !important } .has-header-image .custom-header-media .metaslider { padding:0; } .has-header-image .custom-header-media img { position: static !important; } }
Oh, i think i can work with that! Thx!
But how can i adress a single slide?@media screen and (max-width: 599px) and (min-width: 300px) { .slider-17 slide-21 .has-header-image .custom-header-media .metaslider img { object-position: -900px; } }
Its not working like this.
Hi @ku3hn
You have to get the proper selector from the CSS. Probably like this:
@media only screen and (max-width: 800px) { .has-header-image .custom-header-media .metaslider img.slide-21 { object-position: -900px; } }
CSS selectors go from general to more specific, so the slide image selector needs to go at the end.
Thanks a lot, I think I will try the second solution instead. Feels more right at this moment.
“disable the whole TwentySeventeen header design”
This works more smoothly, with one exception, do you have a idea on this one?
Hi @ku3hn
I’m not sure 100% without being able to see the site but it could just be you need to remove a margin.
.metaslider { margin-bottom: 0 !important; }
If you inspect the page elements with Chrome or another modern browser you can see specifically what styles are being applied and what is adding the space. You can read more on that here: https://developers.google.com/web/tools/chrome-devtools/css
Hi @kbat82, I have a new phenomenon that I can’t cope with. Everything is fine, but now the header is completely missing on the pages. The home page is good. Do you have any idea? I do not have any clue. https://wordpress.monika-mauch.de/
Thank you again for your help!
Daniel@media screen and (max-width:800px) { .entry-title{ font-size:5vw !important; } .site-title { font-size:5vw; } .has-header-image .custom-header { height: auto !important; } .has-header-image .custom-header-media { position: static !important } .has-header-image .custom-header-media .metaslider { padding:0; } .has-header-image .custom-header-media img { position: static !important; } .has-header-image .custom-header-media { position: absolute !important; } }
If i remove this …
and (max-width:800px)
It works on the pages but not on the Startpage, its completely missing then…
so confused!- This reply was modified 4 years, 11 months ago by ku3hn.
Hi @ku3hn,
If you want to target the home page only you can add the
home
classname to the CSS selector. Change.has-header-image
to.home.has-header-image
in the code. Let me know if that works.Hi @kbat82 and Thanks alot for your reply,
I think I put it wrong, everything is okay on the start page, only when I select a page from the menu the slider disappears. Nevertheless thanks for your tip, that helps a little for understanding.
All the best,
DanielHey @kbat82,
I tried to do the “.home” thing and it also makes sense to me but it did not help. Please take a look at the “home page” and then a page from the menu /blog/ for example. I can’t understand it.
https://wordpress.monika-mauch.de/
https://wordpress.monika-mauch.de/blog/Thanks a ton for your support. I am very grateful!
Daniel
@kbat82 or do you know a way that the slideshow is only on the Startpage. I’m really sorry I bombard you with questions. Can I invite you to a cafe? : D
DanielHi @ku3hn
I don’t see the styles updated with .home. See here: https://prnt.sc/ql90cl
If you want to limit the slideshow to just the homepage, add this to the shortcode
[metaslider id=123 restrict_to=home]
Let me know if that works
Hi @kbat82, great, one step further in the direction I like. What am I going to do with this gray on the pages? How can I now define a header image for the pages, or do you have another idea?
And another question do you have an idea why the animation in Firefox is very
“laggy” for me, compared to chrome? And unfortunately I just noticed when I made 2
screen videos for you the navigation elements appear for a short moment – uff …Chrome: https://gph.is/g/ZWdYnYd
In Firefox it is just not smooth and the transition is so sudden.
Firefox: https://gph.is/g/EqROYO5
No day without a tricky question, thank you for your patience and perseverance.
- This reply was modified 4 years, 10 months ago by ku3hn.
Hi @ku3hn
I’m not totally familiar with the WP themes so you will have better luck asking on those specific forums.
https://www.ads-software.com/support/theme/twentyseventeen/
The two gifs you shared were marked as private so I can’t see them. But you might need to implement a cache system so that assets are loaded more quickly. You can try WP-Optimize
Hi @kbat82, Oh I thought you could see the GIFs when I share the link, I made them public.
I just saw that the theme support is not as active as you and therefore I have more inhibitions to ask there. Well I’ll try – Thank you again.
I hope you have an idea about the navigation that can be seen briefly?
Daniel
- The topic ‘Responsiveness’ is closed to new replies.