Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1305942

    hello, how to center frame text in a content slider?
    best regards, jelle

    #1306067

    Hey,

    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,
    Yigit

    #1306133

    Hello 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.
    #1306183

    Hi,

    Please try using following code

    .home .avia-content-slider {
        margin-left: 200px;
    }

    Best regards,
    Yigit

    #1306432

    thanks 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.
    #1306687

    Hi 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,
    Nikko

    #1306696

    hello 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.
    #1306948

    Hi,
    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:
    2021-06-22_006.jpg
    this is due to this css in your <strong style=’color:#000′>Quick CSS:
    2021-06-22_007.jpg
    To correct I wrapped with this media query rule:

    @media only screen and (min-width: 1440px) { 
    ...
    }

    and now it is behaving correctly for mobile:
    2021-06-22_008.jpg
    Please clear your browser cache and check, and feel free to fine tune to your needs.

    Best regards,
    Mike

    #1306978

    Hello 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, jelle

    #1307125

    Hi,
    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,
    Mike

    #1307174

    Hi 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, jelle

    https://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.
    #1307444

    Hi,
    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,
    Mike

    #1307464

    Hi 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.
    #1307516

    Hi,
    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

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘content slider center frame text’ is closed to new replies.