Micheal,<br><br>I've found that often those new to theming in Drupal struggle with volumn of classes and IDs present in many of the Drupal themes. Please note that like all things Drupal this can be modified to your liking. If you're willing to dig deep enough and do the necessary overrides (hooks/preprocess) then the theme output can be tailored, including the removal of many of the element classes and IDs.<br>
<br>For your reference,<br><br><li class="menu-114"> is generated by the core menu module. The "114" is the ID number of the menu entry specific to this tag. You can get this info by looking at the number in the URL of the edit form for the specific menu entry. You will not find CSS entries to this item by default but is included in the markup so that you can add css entries specific to the menu item if desired. <br>
<br>Consider calling theme('links__mylinks', ...); in your tpl file.<br><br>
Then in your template php you can have your override function called<br><br>theme_links__mylinks($vars)<br>if there is no mytheme_links__mylinks function in your theme, it will fallback to mytheme_links, or default theme_links<br>
<br>Do a THEME_preprocess_HOOK($vars) function<br><br><div class="codeblock"><code>function mytheme_preprocess_links__mylinks(&$vars) {<br> print_r($vars);exit;<br>}<br><br></code>This should get you started in gaining control over the markup output for the menu entries.<br>
<br>As for links.css?lgkgm7, is your question about the "?lgkgm7"? If so I suspect that it's simply a random value added to the end of the path to the links.css file to prevent caching of the file.<br></div>
<br>Of course this is all just one persons perspective on your questions. Other might provide better or different input.<br><br>D.<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Message: 1<br>
Date: Fri, 18 Feb 2011 14:54:10 +0800<br>
From: Michael Donahue <<a href="mailto:vbplusme@gmail.com">vbplusme@gmail.com</a>><br>
Subject: [themes] CSS questions I don't seem to be able to find on<br>
Drupal.org...<br>
To: <a href="mailto:themes@drupal.org">themes@drupal.org</a><br>
Message-ID:<br>
<<a href="mailto:AANLkTikqsCmXe077sEcj9Wdq1d6pOoJz0SuD%2BNb3NC08@mail.gmail.com">AANLkTikqsCmXe077sEcj9Wdq1d6pOoJz0SuD+Nb3NC08@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<br>
<br>
Hello and greetings,<br>
<br>
I am trying to understand the internals of themes and have run into a few<br>
questions that seem to be related. I was hoping to find some enlightenment<br>
from the list. TIA for any replies.<br>
<br>
I found references to several classes that I can not find in any .css files<br>
on the order of: <li class="menu-114">. While I was trying to find the .css<br>
file that contained these class definitions, I notice that in the page<br>
source, in the marinelli theme for example, many calls to css file that have<br>
references attached to them, i.e. links.css?lgkgm7. Can someone explain what<br>
this means? I think the menu-xxx classes are being generated dynamically but<br>
I do not understand where that is happening and it appears to be<br>
inconsistent whether it is defined as a class or as an id in the page code<br>
dumps that I have examined.<br>
<br>
Appreciate your attention,<br>
<br>
Kindest regards, Michael<br>
<br>
</blockquote></div><br>