Skip to main content

theme_links() override has no effect

Noob here, struggling with theme.inc overrides.

So I want menus to output in a custom way. Rather thanI would not output the following HTML.

<ul attributes >attributes>
    <li attributes >attributes>
       <a href="foo">foo</a>
    </li>
    <li attributes >attributes>
       <a href="bar">bar</a>
    </li>
 </ul>

thisI would replace it with the following one.

<nav attributes>
   <a attributes href="foo">foo</a>
   <a attributes href="bar">bar</a>
</nav>

So I put in my theme's template.phpthe template.php file the following function, (my theme is called mFAC):.

function mFAC_links($variables) {
    // custom stuff
}

I am starting with a light alteration, but nothing seems to have any effect. And yes I cleared the cache. 

Is there somethinganything I am missing.?

theme_links override has no effect

Noob here, struggling with theme.inc overrides.

So I want menus to output in a custom way. Rather than

<ul attributes >
    <li attributes >
       <a href="foo">foo</a>
    </li>
    <li attributes >
       <a href="bar">bar</a>
    </li>
 </ul>

this

<nav attributes>
   <a attributes href="foo">foo</a>
   <a attributes href="bar">bar</a>
</nav>

So I put in my theme's template.php file the following function, (my theme is called mFAC):

function mFAC_links($variables) {
    // custom stuff
}

I am starting with a light alteration, but nothing seems to have any effect. And yes I cleared the cache. Is there something I am missing.

theme_links() override has no effect

So I want menus to output in a custom way. I would not output the following HTML.

<ul attributes>
    <li attributes>
       <a href="foo">foo</a>
    </li>
    <li attributes>
       <a href="bar">bar</a>
    </li>
 </ul>

I would replace it with the following one.

<nav attributes>
   <a attributes href="foo">foo</a>
   <a attributes href="bar">bar</a>
</nav>

So I put in the template.php file the following function (my theme is called mFAC).

function mFAC_links($variables) {
    // custom stuff
}

I am starting with a light alteration, but nothing seems to have any effect. I cleared the cache. 

Is there anything I am missing?

Tweeted twitter.com/#!/StackDrupal/status/192887332033150976
Source Link
Fresheyeball
  • 235
  • 1
  • 2
  • 7

theme_links override has no effect

Noob here, struggling with theme.inc overrides.

So I want menus to output in a custom way. Rather than

<ul attributes >
    <li attributes >
       <a href="foo">foo</a>
    </li>
    <li attributes >
       <a href="bar">bar</a>
    </li>
 </ul>

this

<nav attributes>
   <a attributes href="foo">foo</a>
   <a attributes href="bar">bar</a>
</nav>

So I put in my theme's template.php file the following function, (my theme is called mFAC):

function mFAC_links($variables) {
    // custom stuff
}

I am starting with a light alteration, but nothing seems to have any effect. And yes I cleared the cache. Is there something I am missing.