Questions tagged [line-breaks]
The line-breaks tag has no summary.
45 questions
0 votes
1 answer
42 views
WordPress adding <br> tag after first <p> in existing text blocks
When editing an existing page or post, WordPress keeps adding a <br/> tag after the first <p> in a Text Block upon opening, but only if the <p> doesn't contain any additional ...
1 vote
2 answers
499 views
esc_html Line break
I've been trying to figure this out for a while and I can't seem to figure it out using <br> or \n but not sure where to place it. I've got this php line for email results and I want to place a ...
0 votes
1 answer
120 views
Can you add a line break above all <h2> tags?
Here's how my text looks like in my text editor - https://prnt.sc/FPDv_zIwQz2R Here's how the web page appears when previewed - https://prnt.sc/fvKit11H3Xr4 As you can see, there's no break above the ....
0 votes
0 answers
65 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
882 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
1k 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
2k 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
155 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
294 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
654 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
342 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
225 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
599 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 ...