Results 1 to 4 of 4

Thread: Submenus - How do I change the structure?

  1. #1
    User
    Join Date
    06-19-09.
    Posts
    417

    Default 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

  2. #2
    User
    Join Date
    06-19-09.
    Posts
    328

    Default 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>')); ?>
    Consulenza Contao CMS https://www.intco.it

  3. #3
    User
    Join Date
    06-19-09.
    Posts
    417

    Default 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.

  4. #4
    User
    Join Date
    06-19-09.
    Posts
    328

    Default Re: Submenus - How do I change the structure?

    Thank you Gary
    Consulenza Contao CMS https://www.intco.it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •