/ Published in: PHP

Few different ways to output primary links in your page.tpl.php template.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /** * Option 1 *******************************************************/ ?> <?php endif; ?> <?php print theme('links', $secondary_links, array('class' => 'links secondary-links clear-block')) ?> <?php endif; ?> <?php /** * Option 2 *******************************************************/ ?> <div id="primary-links"> <?php print theme('menu_tree',variable_get('menu_primary_menu',0)); ?> </div> <?php } ?> <?php /** * Option 3 *******************************************************/ ?> } ?>
Comments
