[Resolved] How to set line height for one block only?

Home Forums Support [Resolved] How to set line height for one block only?

Home Forums Support How to set line height for one block only?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1593690
    Felix

    Hi Team-GP,

    I hooked following code/text to generate_before_content in Blogposts. Somehow the line-height of 1 is not being displayed in the front end. Any ideas how to fix it?

    Thank you and Merry Chrismas

    <!-- wp:paragraph -->
    <p><span style="line-height: 1; font-size: 0.75em; font-family: helvetica; color:#f4b429"><em>Jung von Welt</em> finanziert sich mit der Unterstützung seiner Leser. Unser Inhalt enthält Empfehlungslinks zu den Webseiten unserer Partner und wir erhalten ggf. eine Kommission. <a href="/werbung" target="_blank" rel="noreferrer noopener"><span style="text-decoration: underline;">Mehr Info</span></a></span></p>
    <!-- /wp:paragraph -->
    #1594201
    Leo
    Staff
    Customer Support

    Hi there,

    Try adding the style to the <p> tag and not the <span> tag.

    And make sure to give 1 a unit like 1em.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.