• Sharen McArthur

    (@sharenmcarthurgmailcom)


    I hit enter after every paragraph. The post draft has double spacing. When I publish the post, there is absolutely no spacing anywhere. The paragraphs and subheadings have no spacing.

    How do I fix this problem?

    I unpublished the most recent post that shows this problem. I really think the problem is self-explanatory.

    I use 2021 WordPress theme.

    Thanks for your help.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • you can adjust line height in a few ways. First in the block settings if you click on the vertical menu in the typography section paragraph block there an option to adjust line height. You could also enter a css rule something line this :

    p{
       line-height: 1.2em;
    } 

    this would change all paragraphs on your site.
    Finally you could configure the styles in the theme.json file.

    Also note, That front end styles and backend styles can be different. This can happen if the theme is enqueues different styles for each of them. Usually themes enqueue the same style sheet for each of them. But, the developer can opt to enqueue different styles for each. Usually the same styles are used for both with an additional style added to the backend to adjust block behavior. The blocks are javascript and the front end is html this is why styles have to be enqueued for each of them. Usually this is done in the functions.php file.

    • This reply was modified 1 year, 3 months ago by mrtom414.
    • This reply was modified 1 year, 3 months ago by mrtom414.
Viewing 1 replies (of 1 total)
  • The topic ‘paragraphs have no spacing in published post only in draft’ is closed to new replies.