Site logo

[Resolved] Edit Line Spacing

Home Forums Support [Resolved] Edit Line Spacing

Home Forums Support Edit Line Spacing

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2518846
    Darin

    Good Day,

    I would like to modify the line space on all of my blog posts only. Will this need to be done through CSS?
    I do not want to use the return key to add a paragraph between each line.

    If I modify the <p> element, will it change all <p> elements on the entire site?

    Thanks for your guidance.

    Darin

    #2518889
    Leo
    Staff
    Customer Support

    Hi there,

    Any chance you can link us to the page in question?

    You can use the private information field:
    https://docs.generatepress.com/article/using-the-premium-support-forum/#private-information

    Let me know 🙂

    #2518908
    Darin

    Hi Leo,

    I don’t have any pages live. Still in draft mode and working on the structure of content for blog posts.

    Where can I add CSS to determine line spacing for all current and future blog posts? Or do I need to edit each page? I am guessing I would need to create an ID#?

    Thanks,
    Darin

    #2518916
    Leo
    Staff
    Customer Support

    Try this CSS:

    body.single .entry-content p {
        line-height: 0.5em;
    }

    Adding CSS: https://docs.generatepress.com/article/adding-css/

    #2518988
    Darin

    Yes this looks like it will work. Thank you Leo.

    Much appreciated!
    Darin

    #2519181
    Leo
    Staff
    Customer Support

    No problem 🙂

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