Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1553

    Hi everyone!

    I’m currently working on a test setup of the newscast theme and a couple of questions/problems showed up:

    1. How does is work to make only pages show up in the first navigation line (the one with black background) and only show category links in the second navigation line (with the grey background)? I’m reffering to the demo setup on http://www.kriesi.at/themes/newscast/

    2. How are the dropdown menus created? I created cats with subcats etc., searched the documentation and all but couldnt find any solution.

    Help would be much appreciated!

    Cheers from Germany!

    Armin

    #35629

    Ah yes I have the very same issue, I can only create 1 menu? I’d like a different menu with the drop down text for the top (small text) menu but can’t figure it out. The options say the design only supports 1 menu?

    You can have a gander here http://marsvg.com/

    #35630

    Just create two menus in the menu editor under appearance > menu. You can add categories, posts, pages and links to the menus. Call the first menu “First” and the second menu “Second” and everything will work fine.

    #35631

    Hi Dude! Thanx for the quick help. It worked for the issue about the menus. What i still cant figure out is how the dropdowns are created. Pages with parents dont create dropdown, cats with subcats dont ether. Any ideas???

    #35632

    You need to drag’n'drop the item which should appear as a sub menu item to the right side of a main menu item. So click on an item and move it near the main menu item (parent). WordPress then “links” these two items as parent and child

    The Dude

    #35633

    Thanx alot Dude! Worked! Problem solved!!!

    #35634

    Glad that I could help.

    #35635

    Hi dude im trying to create two level li menu like this: http://www.kriesi.at/demos/twicet/ (top navigation bar->about ) How can i do it?

    #35636

    You need to set child pages in your post/page editor. There you can select if a page should appear as a mainpage or as a subpage of another page. This option is located on the right sidebar in the post/page editor

    #35637

    Thanx for your reply Dude. But it didnt work. I have sorted my pages into main page and subcategories pages but my top menu only shows main pages.

    Maybe my theme is corrupted?

    Using this code:

    <ul id=”nav” class=”clearfloat”>

  • /” class=”on”>Home
  • <?php wp_list_pages(‘title_li=’); ?>

    <li class=”cat-item”>Categories

    <ul class=”children”>

    <?php wp_list_categories(‘orderby=name&title_li=’);

    $this_category = get_category($cat);

    if (get_category_children($this_category->cat_ID) != “”) {

    echo “

      “;

      wp_list_categories(‘orderby=id&show_count=0&title_li=

      &use_desc_for_title=1&child_of=’.$this_category->cat_ID);

      echo “

    “;

    }

    ?>

    It works but it shows pages that i want to exclude and i cant use class: current_page_item.

    Any other idea?

    Thnx in advance.

#35638

Do you use “include pages” under Cubit options — Page Navigation? Try to use exclude instead of include and check that you allow your subpages to be displayed in your main menu.

#35639

I use include pages under “Twicet” options. But it didnt work. So i try other solution.

[BBcode]

//in header.php i got sth like this:

<?php

wp_list_pages(‘title_li=&sort_column=menu_order&’.$k_options);

?>

[/BBcode]

if i change it for

[BBcode]

<?php

$sSplit=explode(“=”,$k_options);

$argPaginas=array(‘title_li’=>”,’sort_column’=>’menu_order’, $sSplit[0]=>$sSplit[1]);

wp_list_pages($argPaginas);

?>

[/BBcode]

is the same and it didnt show my sub-ul menu but all included pages are present. On the other hand if i use this:

[BBcode]

<?php

$argPaginas=array(‘title_li’=>”, ‘sort_column’=>’menu_order’);

wp_list_pages($argPaginas);

?>

[/BBcode]

it works fine. The only problem i’v got is that it shows all pages even those i want to exclude

#35640

Have a look at this page: http://codex.wordpress.org/Function_Reference/wp_list_pages

You can add an argument “exclude” without problems like:

<?php
$argPaginas=array('title_li'=>'', 'sort_column'=>'menu_order', 'exclude'=>'13,46');
wp_list_pages($argPaginas);
?>

Fill in your ids instead of 13,46

#35641

I have checked it already (before my coments). Using either ‘exclude’=>’i,j,k,l,m..’ or include corrupts my sub-li menu.

Can you copy paste the header.php from this http://www.kriesi.at/demos/twicet/

#35642

Kriesi uses the standard php code for the header. There’s no need to paste it here – just use the original header.php file.

#35643

Ok thanx anyway. Maybe it’s a bug of this template.

Viewing 16 posts - 1 through 16 (of 16 total)

The topic ‘Question about top navigation’ is closed to new replies.