Questions tagged [line-breaks]
The line-breaks tag has no usage guidance.
44
questions
0
votes
0
answers
21
views
Line Breaks are stripped off when direction property is found
The line breaks are stripped off when the p tag has a dir attribute inserted, to explain further I'll list some examples.
Let's say we have 2 lines of text as following
<p>Text Paragraph Number ...
0
votes
1
answer
332
views
How to break line / add <br> to ADMIN menu
Disclaimer: This question is not about "frontend" nav menu
I am looking for a way how to break line in a menu item label in WP admin sidebar menu, sidereason is that the custom post type ...
1
vote
2
answers
50
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 ...
2
votes
1
answer
1k
views
How to get excerpt correctly formatted
I'm using a theme that use the_excerpt() function to show the excerpt of the post.
All posts have not set custom excerpt, so the_excerpt() returns a piece of post content.
In some post first paragraph ...
0
votes
0
answers
114
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
2
answers
164
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&...
1
vote
0
answers
380
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 ...
0
votes
1
answer
159
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 ...
1
vote
1
answer
169
views
How to add JavaScript code on WordPress properly?
In the code editor, pasting:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script>
var words = [];
words.push('vocabulary');
...
3
votes
1
answer
1k
views
Show menu item description with line breaks
I have a problem with my theme...
I use Agama, and i've checkmarked "description" in the menu settings, but it won't display it on the frontend, since the theme doesn't allow it.
But then I found ...
2
votes
0
answers
437
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 ...
0
votes
1
answer
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
1
answer
57
views
Problem to return more than single line captions
I'm developing a gallery plugin that shows featured image as album cover. But I need to show some text info in this album cover. So I got the image title to be the name, its working ok. But for the ...
0
votes
1
answer
440
views
How to make a shortcode with a line break in it parse correctly?
I recently created a custom shortcode that can have as many as 35 parameters in it. It's a complicated item, so part of the reason I created the shortcode was so I could see the parameters easily if I ...
0
votes
1
answer
134
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.
1
vote
2
answers
80
views
My simple custom shortcode is not longer working (possibly due to upgrade to WordPress 4.4 ?)
I have a simple function in functions.php that creates a custom shortcode:
function my_line_break() {
return "<br>";
}
add_shortcode( 'new line', 'my_line_break' );
Now, I don't know if ...
0
votes
2
answers
961
views
  when I use ENTER for skipping line
I don't know why when I'm using "Enter", that add in Pages/Posts Editor. That doesn't matter, but on my website, when I look the code makes this code :
<p> � </p>
...
0
votes
1
answer
1k
views
How to show the contants in front end same as visual editor with space / linebreak?
My visual editor looks like this:
My text editor looks like this:
But my front end looks like this:
I know that the wordpress automatically removes linebreaks. So I installed tineMCE advace editor ...
0
votes
0
answers
209
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
1
answer
405
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 ...
4
votes
1
answer
11k
views
How to keep non-breaking spaces in the visual editor?
I often add between connecting words so they break down together to a new line in important text. Switching to visual tab then back to text tab removes these. What can I do to keep them and ...
0
votes
1
answer
610
views
Line break no working on theme
I am working on an e-commerce site and the line breaks wont work, neither using the return button nor using <br /> . I have been looking around but haven't found a solution that works. I would ...
5
votes
10
answers
12k
views
disable WP automatically inserted line breaks after an image
I've set medium sized images to a custom size which should allow for both of the images to align horizontally within the post. (The full post width is 880px, medium images are set to 413px.)
My ...
2
votes
2
answers
9k
views
Remove empty lines ( ) when author updates their post
Whenever adding an empty line between paragraphs using TinyMCE, the character entity is added.
How can I strip the content of all instances of this character whenever an author updates ...
0
votes
1
answer
279
views
Disabled visual editor and Wordpress keeps adding line-breaks to my code
I've disabled visual editor, so this can't be an issue with switching between the two different editors as I've seen in many questions related to this same issue.
I'm pasting code into the page like:
...
0
votes
1
answer
94
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 ...
22
votes
3
answers
6k
views
Switch between Visual and HTML tab freely
So this question has been raised many times under different flags, however I'd like to present a unified thread for an ultimate solution to this issue.
In WordPress, by default, when switching back ...
1
vote
2
answers
2k
views
br tags on backend not showing up on frontend
I was really searching here for a solution for this but I couldn't find anything.
Problem:
br and/or br / tags which I put into my content on the backend were just not showing up on the frontend. No ...
0
votes
1
answer
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 ...
2
votes
1
answer
196
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 ...
9
votes
5
answers
19k
views
How to include line-breaks in the_excerpt?
how can I include a line-break inside the_excerpt. I’ve modified the length and the more-button via my functions.php. I’m using teaser for every blog-entry and sometimes it looks a bit ugly, that ...
1
vote
0
answers
591
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 ...
7
votes
7
answers
25k
views
Preserving line breaks when saving and displaying custom fields data
I'm collecting data via a form plugin and saving that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template using...
if( ...
6
votes
3
answers
20k
views
Stop editor from removing <p> tags and replacing them with nbsp
When I enter content in posts/pages' WYSIWYG editor, I do not get <p> when ending paragraphs, just  s. If I manually place <p></p> in the HTML mode, they are stripped as ...
3
votes
2
answers
7k
views
line break are not working when editing a post [closed]
So I have a problem when making a post. If I press enter and make a new line in the editor and press safe the line break diapers. But when I show the post it have inserted a line break. So somehow the ...
1
vote
1
answer
3k
views
How to prevent pages from automatically adding line breaks?
I'm trying to style a form on a website, but I'm hitting a snag. Wordpress is automatically generating <br> tags when I directly edit the HTML for pages.
What I've got is this:
<fieldset>...
4
votes
1
answer
17k
views
How to enable the <br /> tag in Wordpress posts and pages
i can't understand why so simple feature are disabled by Wordpress Team.
I want have line breaking with "br" tag.
On one wordpress forum was idea to modificate editor.js (in wp-admin/js) and ...
1
vote
4
answers
5k
views
Preserving tabs and line breaks in <pre><code> when switching from HTML to Visual Editor
Tabs placed in a <pre><code></code></pre> block are stripped and line breaks are removed leaving a single continuous line of text. This occurs when switching from html to ...
2
votes
2
answers
3k
views
How to add line breaks inside Gallery Captions
I am using this excellent piece of code to insert a line break in single image captions by way of inserting a pipe character...
Now I would like your help to try to incorporate this into the gallery ...
0
votes
1
answer
569
views
How can I force the Wordpress visual editor to preserve the line breaks after paragraphs?
If I write and put a line break, it make the paragraph tags appropriately, but on this one page the line breaks aren't there:
http://jacksongariety.com/gundoglabs/jobs
1
vote
2
answers
2k
views
Shift-Enter in tinyMCE (wp 3.3.1) not working
With wordpress version 3.3.1, shift-enter to insert linebreaks in pages and posts is not working anymore.
Has anybody observed this as well? Is there a fix for that?
Thanks!
1
vote
1
answer
275
views
Unwanted line break before <input>
Based on help here (
Use of Javascript with Dojo/Dijit on a WordPress page) I got Dijit half way working using a custom template.
But, I still can't figure out why WP inserts breaks where it does. I'...
1
vote
1
answer
397
views
Pasting code into WordPress post - LFs being eaten
I'm sure this is an inappropriate question for this SE because it's not programming related AFAIK but maybe someone here has an idea. I've been posting code into my blog for years and have had no ...
23
votes
7
answers
25k
views
Extra TinyMCE editor strips <p> and <br> tags?
Hey guys, I've added a TinyMCE to some textareas that are displayed in a custom meta box. All of the formatting works perfectly fine, except that the editor will not save <p> or <br/> tags....