Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Why does hitting the enter key in Visual Editor add <p> instead of <br>?

What I want sometimes is a new line that starts immediately after the previous line. Unfortunately, the visual editor automatically wraps my new line in a <p> tag when all I really want is a <br> tag so that there is no space between the two lines.

How can I solve this without specifically changing my code in the HTML tab?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Hit Shift + Enter and you''ll get <br>

share|improve this answer
    
I'm not really sure why you think that would work. I gave it a shot and all it did was put extra space after each paragraph. This is not what I want. What I want is to have no space after a line break. –  jimmykup Oct 9 '11 at 21:57
    
I get it. Edited the answer. –  Alexey Oct 9 '11 at 22:36
    
Haha, there it is. Well, almost. CTRL + Enter didn't work for me. I gave Shift + Enter a try and that did the trick! –  jimmykup Oct 9 '11 at 23:00
    
of course Shift + Enter. It was my mistake, need some sleep :) –  Alexey Oct 9 '11 at 23:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.