Adding text to secondary links bar (marinelli theme)

sean porter - July 2, 2009 - 22:17

Hi there, I'm trying to add a small piece of text to the secondary links bar in the Marinelli theme. the page.tpl.php appropriate code looks like this currently:

<?php if (($secondary_links)) : ?>
      <?php print '<div id="submenu">' ?>
          <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
          <?php print '</div><div class="stopfloat"></div>' ?>
        <?php endif; ?>

I thought I could do something as easy as:

<?php if (($secondary_links)) : ?>
      <?php print '<div id="submenu">' ?>
          <?php print t('Quicklinks >') . theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
        <?php endif; ?>

but it renders the 'Quicklinks' text above the link items: http://www.porterworkstest.seanporterdp.com

is there another way to do this and get the 'Quicklinks' in line with the menu items?

Thank you in advance!

Add class your stylesheet

vitthal - July 3, 2009 - 09:45

Hi

Please add this class in your this style-sheet ( http://www.porterworkstest.seanporterdp.com/themes/marinelli/links.css ) this will help you out.

#submenu ul.links {
display:inline
}

Cheers!
Vitthal Roonwal

 
 

Drupal is a registered trademark of Dries Buytaert.