Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #1252919

    Mischa B
    Participant

    Hi there,

    I’m using TEXT TYPE on my site. Some strings are too long for one line, so the rest the string is placed on a second line. That’s no issue for me. However, in these cases the height of the section increases. The height decreases again when the next string is short enough for one line (see 3rd section at http://deserviceinnovators.nl/). Is it possible to choose a fixed height, independent how many lines the string is?

    Thanks in advance.

    #1252986

    Rue Nel
    Moderator

    Hello There,

    Thanks for writing in! Instead of adding a fixed height to the text type element, we just set a minimum height of default height which would cover the two lines so that it will no longer decrease or increase the height. In your text type settings, please insert an inline css in the style field min-height: 90px;

    Please see this screenshot: http://prntscr.com/d5ult4

    Hope this helps.

    #1253060

    Mischa B
    Participant

    Thank your for your swift respons. Changed the min-height an it works fine!

    Can I ask you another question? I’m trying to change the color of the show-more (‘Lees meer’ on the second section of my site) text by changing the color of the wpm-show and wpsm-hide elements using custom CSS in the Customizer, but this is overwritten by the element.style. How can I resolve this?

    #1253190

    Paul R
    Moderator

    Hi,

    You need to add !important in your code.

    eg.

    
    .wpsm-show, .wpsm-hide {
        color: #ff4d4d !important;
    }
    

    Hope that helps.

    #1253263

    Mischa B
    Participant

    It does! Thanks

    #1253369

    Rahul
    Moderator

    Glad it worked for you.

    Let us know if we can help with anything else.

    Thanks!