Hi,

I need to add an "id" attribute in the ul tag. Here is the code:

<div id="primary" class="clear-block">
<ul class="links">

Where can I find that file so that I can add the "id" attribute?

Thanks :)

Comments

vm’s picture

you may have to work in the page.tpl.php file and your style.css file.

marknt15’s picture

This is the code in the page.tpl.php:

<div id="navigation" class="menu<?php if ($primary_links) { print " withprimary"; } if ($secondary_links) { print " withsecondary"; } ?> ">
        <?php if (!empty($primary_links)): ?>
          <div id="primary" class="clear-block">
            <?php print theme('links', $primary_links); ?>
          </div>
        <?php endif; ?>
</div>

The primary link contents is a php variable that contains the "ul" and "li" tags. Where is the $primary_links variable initialized? So that I can edit them. Thanks :D

vm’s picture

off of the top of my head I don't know. I'd check api.drupal.org or run a FIND on your files for $primary_links