-
AuthorPosts
-
June 16, 2021 at 8:32 am #1305942
hello, how to center frame text in a content slider?
best regards, jelleJune 16, 2021 at 4:29 pm #1306067Hey,
Thanks for contacting us!
Please add following code to Quick CSS field in Enfold theme options > General Styling tab
.groot { text-align: center; }
If that does not help, please post a screenshot and show the changes you would like to make :)
Best regards,
YigitJune 17, 2021 at 8:32 am #1306133Hello and thanks Yigit.
it worked. Plans have changed though… it needs a left margin of some 200xp, i guess, so the text will be about at one third of the pic.
now ive tried the most logical thing.groot { margin-left: 200px !important; }
but this does not do anything. How can i give it a left margin?
best regards, jelle
- This reply was modified 3 years, 5 months ago by yampieters.
June 17, 2021 at 1:40 pm #1306183Hi,
Please try using following code
.home .avia-content-slider { margin-left: 200px; }
Best regards,
YigitJune 18, 2021 at 5:32 pm #1306432thanks yigit , that worked fine.
by the way, the content slider is displaying very big on a mobile, way to big.
now i can make a mobile version and a desktop version ( and so make two versions of the same thing in fact ):.mobile {display:none !important;} .desktop {display:block;} @media only screen and (max-width: 479px) { .mobile {display: block !important;} .desktop {display: none !important;} }
but is it also possible to tell the system to display the whole thing just small on a mobile?
the text itself i can make smaller by
@media only screen and (max-width:767px) { #top .groot .entry-title { font-size: 32px; } #top .groot .entry-title { font-size: 32px; } }
but its more about the background picture that is way too big…
best regards, jelle
- This reply was modified 3 years, 5 months ago by yampieters.
June 21, 2021 at 10:03 am #1306687Hi jelle,
The content slider seems to be hidden in mobile, to adjust the height can you try adding this code in Quick CSS:
#home-content-slider .container { height: 240px !important; }
just after this line:
@media only screen and (max-width:767px) {
Hope it helps.
Best regards,
NikkoJune 21, 2021 at 11:03 am #1306696hello Nikko, thanks for the reply.
Unfortunately this is not doing that much.
I ve activated it now so you can see it on a mobile.
best regards , jelle- This reply was modified 3 years, 5 months ago by yampieters.
June 22, 2021 at 2:37 pm #1306948Hi,
Thank you for your patience and for the login, as I understand the current issue, on mobile your homepage content slider titles are off the screen:
this is due to this css in your <strong style=’color:#000′>Quick CSS:
To correct I wrapped with this media query rule:@media only screen and (min-width: 1440px) { ... }
and now it is behaving correctly for mobile:
Please clear your browser cache and check, and feel free to fine tune to your needs.Best regards,
MikeJune 22, 2021 at 4:21 pm #1306978Hello Mike, thanks a lot…looks better…but the image itself was also an issue…its a background pic but it looks way too big on a mobile…
can i get it smaller on a mobiel?
best regards, jelleJune 23, 2021 at 11:55 am #1307125Hi,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 1024px) { #top.home #home-content-slider { background-position: 85% !important; background-size: cover !important; } }
Then clear your browser cache and any cache plugin, and check.
Best regards,
MikeJune 23, 2021 at 3:55 pm #1307174Hi Mike, thanks for the reply.
But there seems to be a misunderstanding. Following your advice above hte image is still way to heigh and big.
( https://jmcwebdesign.nl/ppp/wp-content/uploads/2021/06/toobigthepic.jpg )
i would rather see it in proportion – scaled down – just like when you look at the website on a pc.
i have tried to visualize it in my selfmade picture below, which is representing the view on a mobile.
do you see what i mean? the background picture is in proportion now.
best regards, jellehttps://jmcwebdesign.nl/ppp/wp-content/uploads/2021/06/imageonmobile.jpg
ps: ive tried this code below, where the picture now is in control, but the top and bottom margins are huge, which is of course not what i want
( https://jmcwebdesign.nl/ppp/wp-content/uploads/2021/06/marginstoobig.jpg ):/* plaatje homepage op gsm */ @media only screen and (max-width: 767px) { #top.home #home-content-slider { background-position: 85% !important; background-size: 100%; } }
- This reply was modified 3 years, 5 months ago by yampieters.
June 25, 2021 at 1:53 pm #1307444Hi,
Thank you for the feedback, in order to do this you will need several different css rules. Please try these for sizes up to 1024px:@media only screen and (max-width: 374px) { #top.home #home-content-slider { background-size: contain !important; } #top.home #home-content-slider > .container { max-height: 140px !important; } #top.home #home-content-slider > .container > .content { padding: 0 !important; } #top.home #home-content-slider h3.entry-title { font-size: 14px !important; } #top.home #home-content-slider .groot { padding: 10px; } } @media only screen and (min-width: 375px) and (max-width: 480px) { #top.home #home-content-slider { background-size: cover !important; } #top.home #home-content-slider > .container { height: 185px !important; } #top.home #home-content-slider h3.entry-title { font-size: 24px !important; } #top.home #home-content-slider > .container > .content { padding: 0 !important; } } @media only screen and (min-width: 481px) and (max-width: 767px) { #top.home #home-content-slider { background-size: cover !important; } #top.home #home-content-slider > .container { height: 300px !important; } } @media only screen and (min-width: 767px) and (max-width: 988px) { #top.home #home-content-slider { background-size: cover !important; } #top.home #home-content-slider > .container { height: 345px !important; } } @media only screen and (min-width: 989px) and (max-width: 1024px) { #top.home #home-content-slider { background-size: cover !important; } #top.home #home-content-slider > .container { height: 420px !important; } }
Then clear your browser cache and check.
Best regards,
MikeJune 25, 2021 at 5:00 pm #1307464Hi Mike, wow, thats brilliant and exactly want i wanted.
there was only a small esthetic problem: https://jmcwebdesign.nl/ppp/wp-content/uploads/2021/06/Screenshot_20210625-162751_Chrome.jpg
the image was not covering the whole width of the screen.
but i could resolve this with changng contain by cover@media only screen and (max-width: 374px) { #top.home #home-content-slider { background-size: cover !important; }
my tablet is 1280×800.
herefor i added the code@media only screen and (min-width: 1025px) and (max-width: 1280px) { #top.home #home-content-slider { background-size: cover !important; } #top.home #home-content-slider > .container { height: 455px !important; } }
and got a rather satisfying result
i think you can close this ticket now.best regards, jelle
- This reply was modified 3 years, 5 months ago by yampieters.
June 26, 2021 at 12:11 pm #1307516Hi,
Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘content slider center frame text’ is closed to new replies.