Avada Forums Community Forum Avada w/ WPML: Empty paragraph in translated pages (Workaround/Solution)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Cedric
    Participant
    Post count: 1

    Hello folks,

    I just want to share a little workaround “solution” for the issue mentioned in the subject. Maybe you had the case already, that within the translated pages using WPML, you’re getting an empty paragraph at the beginning and at the end of the post content, causing an unwanted white space.

    The (I would call it) workaround by WPML (found in one of their tickets) removing the “wpautop” filter didn’t work quite well for me. It broke my line endings on soft line breaks completely.

    The workaround I’m living with right now is the following CSS rule I wrote:

    p:empty {
      display: none;
    }

    At least the white space is gone and my layout looks good again.

    Hope this helps some of you.

    If you got a better solution – maybe even a real one – I would love to read it in the comments!

    #staysafe and happy designing 🙂

    Kind regards
    Cedric
    #ceo90

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.