Questions tagged [line-breaks]

The tag has no usage guidance.

15 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
1answer
188 views

Processing shortcodes in groups (separated by line breaks)?

The Project I'm working on a plugin to resize and embed rows of images using shortcodes that will be converted into <img> tags. In most cases there will be multiple images per row, and the ...
1
vote
2answers
27 views

WordPress automatically removes line break

When writting a description for a Woocoomerce Product and inserting a line break with br or p Tag, WordPress automatically removes it. This is really annoying because on some points, i want to have ...
1
vote
0answers
180 views

Removing line breaks when in text view with wp_editor

While working on a custom plugin, I needed to add the wp_editor in the admin to let the user add its own content. I want the user to be able to write custom rich texts with the "Visual" editor mode ...
1
vote
0answers
371 views

Wordpress blockquote removes `<br>` tag

So I have a quote in my page template and I would like to give the user the opportunity to add line breaks whenever they desire to do so. I wanted the blockquote to have an extra <p> tag inside ...
1
vote
0answers
578 views

How can I remove <br /> line breaks from manually formatted HTML?

I see a lot of posts here and elsewhere having trouble adding line breaks for some reason, but I'm trying to remove them. I'm new to WP, and I see that when editing in "HTML" mode the text is rendered ...
0
votes
0answers
72 views

tinymce and responsive line-breaks (short words after a period)

With the advent of many different screensizes, manual line ending (not sentence-endings) has become a bit of a guessing/repetitive task. I want to avoid having the first short word of a new sentence ...
0
votes
2answers
83 views

Custom Fields displaying in single line

I have custom fields to display in a post. But all of the custom fields are displaying in a single continuous line, while i want them in separate lines. I am not a coder. I tried <br>, <li&...
0
votes
1answer
99 views

Remove Line Breaks From Cell Content in WordPress

A line break in a table cell is converted to ⟨br ⁄ ⟩ when it is saved. I must remove all line breaks from the cell content else there is excessive space between paragraphs, list items, etc. It makes a ...
0
votes
1answer
2k views

Use ENTER, not SHIFT+ENTER to Insert Line Break in WP editor

I would like to use ENTER button to insert line break, not SHIFT + ENTER by default. I added this code into function.php. It works but the problem is the text-align buttons are not working. When I ...
0
votes
1answer
118 views

slider stripping out caption/excerpt line breaks

I ran into an issue where the slider I was using (Wonderplugin) was stripping out paragraph and other formatting tags on captions/descriptions, though they were working on the actual images in Posts.
0
votes
2answers
824 views

&nbsp when I use ENTER for skipping line

I don't know why when I'm using "Enter", that add &nbsp; in Pages/Posts Editor. That doesn't matter, but on my website, when I look the code &nbsp; makes this code : <p> � </p> ...
0
votes
0answers
202 views

Why is WP ignoring my line breaks?

WP is using TinyMCE as a WYSiWYG editor. So why then is WP ignoring my line breaks? I really shouldn't have to do: echo wpautop( $some_long_text ); (large picture: http://prntscr.com/4re6xv) Here is ...
0
votes
1answer
354 views

How to Retain Line Breaks From User Profile Text Fields

I am using <?php the_author_meta( $field, $userID ); ?> to display a user biographical info. In the users bio info box, there are physical line breaks present. Yet the results from ...
0
votes
1answer
84 views

Wordpress post text starts newline after 93 characters

When typing the text of a new post, my text stops halfway the textarea and starts on a new line again. There are no linebreaks after a cut-ff sentence. When I type a single line of characters the ...
0
votes
1answer
1k views

Wrap Meta Box with <li> and </li> for each new line

I'm trying to automate one of our posting aspects. We post a lot of lyrics and have a system of meta boxes which we use to input various pieces of information about each set of lyrics we post. One ...