Multiline menu item for wordpress

luisalfredo.hernandez
4 Posts
luisalfredo.hernandez posted this 16 January 2016

Hi.

i need to create a top menu navigation for 6 pages, but the items text are very large. i need to break the long text in 2 lines.
i have tried usign <br> on labels for each menu page, but its not working

for example: Registro de entidades <br> sin animo de lucro (this is working on static page, but not on wordpress)

is there some menu configuration on themler o wordpress that let me define the text for menu items in two lines?

Please see the images.

Best regards, thanks in advance.

Hi. i need to create a top menu navigation for 6 pages, but the items text are very large. i need to break the long text in 2 lines. i have tried usign &lt;br&gt; on labels for each menu page, but its not working for example: Registro de entidades &lt;br&gt; sin animo de lucro (this is working on static page, but not on wordpress) is there some menu configuration on themler o wordpress that let me define the text for menu items in two lines? Please see the images. Best regards, thanks in advance.
Vote to pay developers attention to this features or issue.
6 Comments
Order By: Standard | Newest
Stagger Lee
1838 Posts
Stagger Lee posted this 17 January 2016

Set width in px for menu items. And put Menu align as "justified".
Or better ignore width and force new line with huge padding left-right values.

Set width in px for menu items. And put Menu align as "justified". Or better ignore width and force new line with huge padding left-right values.

Last edited 17 January 2016 by Stagger Lee

luisalfredo.hernandez
4 Posts
Is Solution
luisalfredo.hernandez posted this 30 January 2016

Set width in px for menu items. And put Menu align as "justified".
Or better ignore width and force new line with huge padding left-right values.

Hi Stagger lee, thank you very much for your answer but none of your solutions work for me. the width of menu item is now 200pw but the text remains on one line and exceeds the area without breaking

increase padding and justified alignment of the menu, it does not work

do you have another idea on how to resolve it?

> Set width in px for menu items. And put Menu align as "justified". > Or better ignore width and force new line with huge padding left-right values. Hi Stagger lee, thank you very much for your answer but none of your solutions work for me. the width of menu item is now 200pw but the text remains on one line and exceeds the area without breaking increase padding and justified alignment of the menu, it does not work do you have another idea on how to resolve it?
luisalfredo.hernandez
4 Posts
luisalfredo.hernandez posted this 30 January 2016

I also tried the code provided with support on same question from another user, but not works for me . seems like the css code does not load

the css on home->settings are the following

.bd-menu-13.nav-pills .bd-menuitem-20 > a, .bd-menu-13.nav-pills .bd-menuitem-20 > a:link, .bd-menu-13.nav-pills .bd-menuitem-20 > a:visited
{

white-space: pre-wrap!important;
max-width: 180px;
text-align: center;

}

You have any idea what could be the problem?, what settings i must change to multiline works ? thank you very much for your help and time

I also tried the code provided with support on same question from another user, but not works for me . seems like the css code does not load the css on home->settings are the following .bd-menu-13.nav-pills .bd-menuitem-20 > a, .bd-menu-13.nav-pills .bd-menuitem-20 > a:link, .bd-menu-13.nav-pills .bd-menuitem-20 > a:visited { white-space: pre-wrap!important; max-width: 180px; text-align: center; } You have any idea what could be the problem?, what settings i must change to multiline works ? thank you very much for your help and time
Support Team
Support Team posted this 01 February 2016

Hi,

That solution is suitable only for that particular user as you have another class names. If you provide a link to your site, I'll find out what class name you would need to use.

Sincerely,
Hella

Hi, That solution is suitable only for that particular user as you have another class names. If you provide a link to your site, I'll find out what class name you would need to use. Sincerely, Hella
osangoqui
2 Posts
osangoqui posted this 01 September 2016

Hi, i have the same problem, my url is maranathainternacional.com, the menu with countries is very long, i need multiline in this menu when the screen is small, very thanks.

Hi, i have the same problem, my url is maranathainternacional.com, the menu with countries is very long, i need multiline in this menu when the screen is small, very thanks.

Last edited 01 September 2016 by osangoqui

Support Team
Support Team posted this 01 September 2016

Hi,

Please attach a screen shot of the problem as I do not see any menu items overlapping the screen.

Sincerely,
Hella

Hi, Please attach a screen shot of the problem as I do not see any menu items overlapping the screen. Sincerely, Hella
You must log in or register to leave comments