I want to display multiple words in primary links menu item titles on their own lines. Example:

About Us displayed as

About
Us

on the primary links menu.

Thanks fpr any suggestions.

Comments

pbarnett’s picture

You could modify your page.tpl.php to replace the spaces with <br /> like this (snippet from my page.tpl.php)

      <?php if ($primary_links): ?>
        <div id="primary" class="clear-block">
          <?php foreach ($primary_links as $link): ?>
          <li><?php
            $href = $link['href'] == "<front>" ? base_path() : base_path() . $link['href'];
            print "<a href='" . $href . "'>" . str_replace(' ','<br />',$link['title']) . "</a>";
          ?></li>
          <?php endforeach; ?>
          </ul>
        </div>
      <?php endif; ?>    

Pete.

jjlowe’s picture

Thanks Pete. That works.
John