Viewing 12 posts - 31 through 42 (of 42 total)
  • Author
    Posts
  • #1156479

    Hi Mike,

    Thanks! That’s working in Chrome, only in Safari the text is transparant. When I select the text, the text is not visible but I see it is centered.

    You can have a look! Thanks!

    #1156524

    Hi,
    OK, I also notice that the gradient is not very good with display:flex, so it seems display:inline is the best way.
    So lets try adding a div around the h2 and center that:

    <div class="cme"><h2 class="kop-gradient center">Sta-op stoel Arnhem</h2></div>

    this will be the css for the new class “cme”

    .cme {
        display: flex;
        justify-content: center;
    }

    So we are leaving the h2 in the way we know works in Safari, and wrapping it in a new div which we will then center with flex.
    If your not sure how to add a div, Please include an admin login in the Private Content area so I can demonstrate.

    Best regards,
    Mike

    #1156528

    I think it’s working!! Thanks a lot Mike!

    Your support is amazing!

    #1156737

    Hi,
    Glad to help, please check one more time and then we will close this thread.

    Best regards,
    Mike

    #1158630

    Hi Mike,

    Thanks for not closing this thread yet. I now see that on mobile some headings are not correctly visible. When you go to the homepage you see the heading “sta-op stoel Arnhem”. That should be centered. On desktop it is, on mobile not. Than when you scroll down you see the white squares with gradient title, text and gradient button. The second heading is not showing great. That one is longer so it has two lines of text and the second word is not visible and too much to the left if you understand what I mean. “Wisselend assortiment” is the title name.

    On the page /merken you see the title “Welke merken” but the whole title is “Welke merken verkopen wij?”. So, not the whole title is visible.

    Hope you understand what I mean! I’ve added al the pages where the title is not good on mobile in private content!

    Thanks a lot!

    #1159400

    Hi,
    Sorry for the late reply, so for “sta-op stoel Arnhem” & “Thuisdemonstratie” on small mobile (320px) I was able to adjust them, on large mobile (425px) they showed correctly.

    @media only screen and (max-width: 424px) { 
    #top.home .cme {
    	width: 260px !important; 
        margin-left: -20px !important; 
    }
    #top.home .avia-builder-el-19 h2.kop-gradient {
    	margin-left: -28px !important; 
    }
    }

    But the “Wisselend assortiment” is too large to adjust this way. Is it possible that this one can have a shorter heading? If so we can duplicate the element and only show it on the small mobile screens. It may be better to do the same for the other elements instead of using the css above.
    Another option may be to make the font-size smaller only for the small mobile screens.

    Best regards,
    Mike

    #1172423

    HI Mike,
    How do I implement the code for the gradient text you send as an example in your reply from the beginning? (#1082076)
    I like the gradient from example 3, but i have no idea on how to apply that on my h1 texts?
    Hope you can help me with that.
    Best regards,
    Sebastian

    #1172437

    Hi,
    To add the gradient to your page title H1 heading you would use this css in your Enfold Theme Options > General Styling > Quick CSS field:

    #main h1.main-title a {
    	text-transform: uppercase !important; 
    	background: linear-gradient(to right, #30CFD0 0%, #330867 100%);
    	-webkit-background-clip: text;
    	-webkit-text-fill-color: transparent;
    }

    To add the gradient to another element that is using the H1 heading such as a Special Heading element you would first add a custom class to the element such as “h1-gradient” and then use this css:

    #main .h1-gradient h1 {
    	text-transform: uppercase !important; 
    	background: linear-gradient(to right, #30CFD0 0%, #330867 100%);
    	-webkit-background-clip: text;
    	-webkit-text-fill-color: transparent;
    	
    }

    Expected results:
    2020-01-11-123012
    If you have trouble targeting your H1 element please link to it and we will help identify the correct sector.

    Best regards,
    Mike

    #1172456

    I tried to do the first option to the general styling field, but it didn’t work. :/

    #1172525

    Hi,
    Sorry, I get this error when I try to login:

    Unbekannter Benutzername. Überprüfe ihn noch einmal oder versuche es mit deiner E-Mail-Adresse.

    please check.

    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    #top.home .avia_textblock h1 {
    	text-transform: uppercase !important; 
    	background: linear-gradient(to right, #30CFD0 0%, #330867 100%);
    	-webkit-background-clip: text;
    	-webkit-text-fill-color: transparent;
    }

    Then clear your browser cache and check.

    Best regards,
    Mike

    #1172529

    Perfect, with the new code, it worked perfectly! Thanks a lot!

    #1172547

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 12 posts - 31 through 42 (of 42 total)
  • The topic ‘Gradients (buttons and text)’ is closed to new replies.