Hello,

Normally the ordered list has the following structure:

<ol>
  <li>first</li>
  <li>second</li>
  <li>third</li>
</ol>

I would like it to have <span> inside <li> like this:

<ol>
  <li><span>first</span></li>
  <li><span>second</span></li>
  <li><span>third</span></li>
</ol>

What is the theming function that does this?
Thanks

Comments

VikrantR’s picture

Hi CPJS,

You can use it same as it is.

OR

If it is coming form any theme function, you can overwrite it, you have to check from where it is coming. and use same function in template.php of your theme folder.

Example : If you find theme function is :

function theme_test_ol(){
// some code will be here.
}

Overwriting:

In template.php of your theme folder:

Here "theme" is being replaced by "your_theme_name"

function your_theme_name_test_ol(){
// Overwrite your required code here
}

Hope it will solve your query.

Vikrant R

CPJS’s picture

Thank for replay,

What I mean is I do not know the function that creates the <li> inside ol in an article. That is what I need.

edrupal’s picture

I think theme_item_list is what you're looking for.

Ed