Submenus - How do I change the structure?
By default submenu headings are wrapped with a h2 tag.
For SEO reasons I need to remove the h2 tag and replace it with a p tag.
In mod_navigation I can see this:
Code:
<?php echo $this->headline; ?>
But where in the code can I amend $this->headline
I appreciate that hacking a file to achieve this is not ideal. But in this case absolutely necessary without it I cannot get the project signed off - ie paid.
Thanks,
Gary
Re: Submenus - How do I change the structure?
hi doublespark,
a quick hack could be:
Code:
<?php echo strtr( $this->headline, array('<h2>' => '
', '</h2>' => '</p>')); ?>
Re: Submenus - How do I change the structure?
That's twice you have saved my bacon this weekend.
If you pm me your paypal email address I'll send you a few beers as a small gesture of my appreciation.
Thanks.
Gary.
Re: Submenus - How do I change the structure?