• Hello everyone,

    I have a problem. When I add a Break line at the end of a paragraph the effect does not show on the site. It remains a bunch of text without the lines in between.

    How do I solve this?

    Thanks in advance,

    Rudolf

Viewing 5 replies - 1 through 5 (of 5 total)
  • Unless you provide a link to a page demonstrating the problem, no one will be able to offer much in the way of specific help.

    Thread Starter rednose86

    (@rednose86)

    You can see the website here: https://www.hobbieblog.nl/cms/

    Your text is all in a single <div></div>. Perhaps your theme uses the_excerpt() instead of the_content()?

    if you can edit your theme you can use a php function to replace all “character returns” (basically when you press enter) with a

    the function is nl2br();

    I know the_content() should come well formatted. not sure about the_excerpt().

    echo $excerpt = nl2br(get_the_excerpt());

    A ‘Break line’? Do you mean a br tag? None appears in the ‘source’ of the text in your page when viewed in a browser. Have you tried inserting one in the HTML code, using the HTML code editor?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘BR tag does not work’ is closed to new replies.