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 !

About the author

Theo van der Sluijs Theo van der Sluijs (1975) is Lead Developer at Unitrust BV. He is also creator of "I Am Bored So I blog" / Gebruikmaar.nl / vanderSluijs.nl. He is a member of the Board of the Dutch Flex Usergroup and Goesweb.net. With his quote "Never Give Up, Never Surrender" (Actually stolen from Galaxy Quest) he fights his way through the day. Connect with him on Twitter.

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

5 Responses to “Correct sub menu in Artisteer and WordPress”

  • Jaka:

    Does not work for me …

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    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.3_1094]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.3_1094]
      Rating: 0 (from 0 votes)
  • Alex:

    Hi,

    Does not work for me too.
    Get error:

    Parse error: parse error in C:\xampp\htdocs\wp\wp-content\themes\mytheme\header.php on line 41

    39:
    40:
    41: <?php wp_list_categories(‘title_li=
    Categories
    ’); ?>

    Archives

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    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.3_1094]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.3_1094]
      Rating: 0 (from 0 votes)
  • Thank, this work great for me!!!

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

Leave a Reply

QR Code
Donate

Like the information on my site? Please donate for a cup of coffee, or give a bit more for a cappuccino.

Twitter
Get Adobe Flash playerPlugin by wpburn.com wordpress themes