Is there any way to specify where to put the line breaks. For example, I have 3 lines of primary menu items showing on the top of the page. Some of my menu names are 2 or 3 words. Bluemarine is breaking them up to fit. Is there a way I can specify where to put the line breaks, or just to tell it not to break an item, and let it do the regular line breaks between items by itself?

Thanks
Frank

Comments

greggles’s picture

Title: Bluemarine Primary Menu Problem » Primary Menu line breaks inside of the words of one menu item
Version: 4.7.3 » x.y.z
Category: support » feature
Priority: Critical » Normal

I changed your issue to a feature request against CVS because the behavior you describe seems pretty logical. It would be nice in the menu system to have the ability to designate certain menu items as "non breaking space delimited". I tried to enter

"this is a crazy long title for the link to the blogs but I want to test what happens with crazy long titles so it seems like"

Which should achieve what you desire, but the text is output literally instead of as HTML.

I see two workarounds:

You can create a block with the desired HTML to create your menu and put that block into the header.

Or, you can use your theme template files to modify the behavior of the primary links menu.

greggles’s picture

Component: base system » menu system

I forgot to change the component.

L4san’s picture

Version: x.y.z » 7.x-dev

Any news about this?

ask’s picture

You should take a look at Menu HTML module: http://drupal.org/project/menu_html
And just use   instead of plain spaces.

netw3rker’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

@ask captured @greggles problem pretty accurately. If I understand what the OP was asking, its more about the fact that menu items are "float:left" in the primary links menu of the bluemarine theme, and as a result just keep stretching into/behind the other heading elements. EG a list like this:

<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
<li>item 5</li>
</ul>

would render like this:
item 1 item 2 item 3 item 4 item 5

From the sounds of the OP, they would like to be able to decide on an arbitrary break point, making the rendering like so:
item 1 item 2
item 3 item 4 item 5

You could do as @yes said, and add an html <BR> tag to "item 2", and be fine, but my suggestion would be to use the Menu Attributes module ( https://www.drupal.org/project/menu_attributes ). with that you could modify via the UI the 'style' output of a particular menu link to look like so:

<ul>
<li>item 1</li>
<li>item 2</li>
<li style="clear: left;">item 3</li>
<li>item 4</li>
<li>item 5</li>
</ul>

which, without adding markup to your text, would also give you the output of:
item 1 item 2
item 3 item 4 item 5

Hope this helps, and forgive me for closing this (now 7 year old ticket). If this becomes a core issue feel free to open the issue back up!