Static webpage created nav menu separating titles using <br> tags, but when I'm converting the site into WordPress I'm missing <br> tags there.

How can I enable using <br> tags in wp_nav_menu().


You can wrap menu link texts in html tags, in example Menu <span>Item</span>. Now you can create line break with CSS.

.nav span {
    display: block;
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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