Correct sub menu in Artisteer and WordPress


Like the submenus that Artisteer generates within the temaplate you made but you cannot find them anywhere when you installed the template on your wordpress websites.

I am talking about the Categories and Archives sub menus off course.

Well, it is actually very simple. Just put this piece of code in your template header.php

Find the next lines in Header.php:

<ul class="art-menu">
    <?php art_menu_items(); ?>
</ul>

Delete them.

Then put these lines back where the other lines stood.

    <ul class="art-menu">
        <?php art_menu_items(); ?> 
        <?php wp_list_categories(‘title_li=</li><li><a><span class="l"></span><span class="r"></span><span class="t">Categories</span></a>’); ?>
        <li><a><span class="l"></span><span class="r"></span><span class="t">Archivesf</span></a><ul>
        <?php wp_get_archives(‘type=yearly’); ?>
        </ul></li>
    </ul>

Save, ready !

Theo van der Sluijs

Theo van der Sluijs (1975) is Software Development Manager at Bax-shop.nl. You can read more in dutch on his “Dutch Blog“, he also created Gebruikmaar.nl. He is a member of the Board of the Dutch Flex Usergroup and Goesweb.net.

Google+ Twitter LinkedIn 



VN:F [1.9.13_1145]
Rating: 4.0/10 (2 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
Correct sub menu in Artisteer and WordPress, 4.0 out of 10 based on 2 ratings

Related Posts

5 comments

  1. Does not work for me …

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
    • You might wanna tell what does not work. Do you get an error, doesn't it show. Did you expect something else ?

      VN:F [1.9.13_1145]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.13_1145]
      Rating: 0 (from 0 votes)
  2. Hi,

    Does not work for me too.

    Get error:

    Parse error: parse error in C:xampphtdocswpwp-content hemesmythemeheader.php on line 41

    39:

    40:

    41: <?php wp_list_categories(‘title_li=<a>

    Categories’); ?>

    <a>Archives

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
    • Try to remove and re-add the ' before title and after Categories , this ‘title_li=Categories’ does not looks like 'title_li=Categories'

      VN:F [1.9.13_1145]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.13_1145]
      Rating: 0 (from 0 votes)
  3. Thank, this work great for me!!!

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes