Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way to do this? I cannot find it anywhere!
The primary links are displayed by default as:
Link 1 | Link 2 | Link 3 | Link 4
I want to get them to be:
Link 1 Link 2 Link 3 Link 4
Even better still, I would like to know how to make the primary links an
- using CSS. But that might be a bit too much to ask!
Comments
Comment #1
unrev.org CreditAttribution: unrev.org commentedIt was meant to say that I wanted to get the primary links to be displayed as an "ul".
Comment #2
rkerr CreditAttribution: rkerr commentedYou can try changing theme('links', $primary_links) to theme('item_list', $primary_links).
Or, I have seen someone else do this before:
Add
afterwards.
Then change the theme('links' .. ) call to be theme('links', $primary_links, '
and that should wrap the items properly.
Comment #3
logictude CreditAttribution: logictude commentedIn case you didn't see http://drupal.org/node/44708. It's got a very specific example that should suit your needs.
Comment #4
rkerr CreditAttribution: rkerr commentedComment #5
(not verified) CreditAttribution: commentedComment #6
unrev.org CreditAttribution: unrev.org commentedThanks for the feedback. The link was very helpful.
Comment #7
markhalliwell