ThemeShaper Forums » Thematic

[closed]

Use the Categories Menu global

(5 posts)
  • Started 13 years ago by moncho
  • Latest reply from moncho
  • This topic is not resolved
  1. Hello there

    So i try to explain my problem at my best english and hope to get some help....

    I just installed the thematic power blog theme which has the nice "submenu" when the user clicks the blog tab in the navigation. then appears a submenu with all blog categories.....

    so now i wanna make the same thing with the rest of my menu....that means when a users click on "guide" that then doesn't appears the dropdown menu with all subpages......i want that the same style appears like clicking in the blog tab.

    Blog (GUIDE) Services Development Science
    Mail Web Video

    I hop you understand my whish and could help me

    if you dont understand my question please answer and i'll try it again....

    my page:

    www.pose.ch

    there i found an example:

    http://users.tpg.com.au/j_birch/plugins/superfish/#

    i mean the nav bar style....

    is this the solution for my question or isn't it?
    http://forums.themeshaper.com/topic/adding-superfish-navbar-menu

    Posted 13 years ago #
  2. i think its verry easy to get this. at least i think i only have to rename a class or something like that! please help me. the themaitc is a great theme but for noobs not very accessible

    Posted 13 years ago #
  3. take a look at pose.ch there i realised now that the categories menu apears on each menuitem. but there are always the categories from the post. i have some pages as menuitem and would like that there appears the subpages dynamic

    Posted 13 years ago #
  4. Hi Moncho,

    Something similar was discussed in this thread:

    http://forums.themeshaper.com/topic/create-horizontal-dropdown-child-menu-that-holds-on-subpage

    That discussion was not specific to the Power Blog Theme but could help you

    -Gene

    Posted 13 years ago #
  5. hi! in this moment i found the thread ;-)

    but im not verry a coder so i have got some trouble yet with integrating the code.....

    can you help me a bit? this is my functions.php from the child theme (powerblog) where i have to put your source when i unterstand it right. but i dont know exactly where....

    `<?php

    // Load Child Theme scripts
    // http://www.cssnewbie.com/example/equal-heights/
    function childtheme_scripts() { ?>
    <script type="text/javascript">
    jQuery.noConflict();
    function equalHeight(group) {
    tallest = 0;
    group.each(function() {
    thisHeight = jQuery(this).height();
    if(thisHeight > tallest) {
    tallest = thisHeight;
    }
    });
    group.height(tallest);
    }
    jQuery(document).ready(function() {
    equalHeight(jQuery(".main-aside"));
    });
    </script>

    <?php }
    add_action('wp_head','childtheme_scripts');

    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    function childtheme_menu_args($args) {
    $args = array(
    'show_home' => 'Home',
    'sort_column' => 'menu_order',
    'menu_class' => 'menu',
    'echo' => true
    );
    return $args;
    }
    add_filter('wp_page_menu_args','childtheme_menu_args');

    // Add a drop down category menu
    function childtheme_category_menu() { ?>
    <div id="category-access">
    <div id="category-menu" class="menu">
    <div class="menu-title"><?php _e('Categories:', 'thematic'); ?></div>
    <ul id="category-nav" class="sf-menu">
    <?php wp_list_categories('title_li='); ?>

    </div>
    </div>
    <?php }
    add_action('thematic_belowheader','childtheme_category_menu', 5);

    // Add a widgetized aside just below the header
    function childtheme_leaderasides() { ?>

    <?php if ( is_sidebar_active('1st-leader-aside') || is_sidebar_active('2nd-leader-aside') || is_sidebar_active('3rd-leader-aside') ) { // one of the leader asides has a widget ?>
    <div id="leader">
    <div id="leader-container">

    <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('1st-leader-aside') ) { // there are active widgets for this aside
    echo '<div id="first-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('1st-leader-aside');
    echo '' . "\n" . '</div><!-- #first-leader .aside -->'. "\n";
    } ?>

    <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('2nd-leader-aside') ) { // there are active widgets for this aside
    echo '<div id="second-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('2nd-leader-aside');
    echo '' . "\n" . '</div><!-- #second-leader .aside -->'. "\n";
    } ?>

    <?php if ( function_exists('dynamic_sidebar') && is_sidebar_active('3rd-leader-aside') ) { // there are active widgets for this aside
    echo '<div id="third-leader" class="aside sub-aside">'. "\n" . '<ul class="xoxo">' . "\n";
    dynamic_sidebar('3rd-leader-aside');
    echo '' . "\n" . '</div><!-- #third-leader .aside -->'. "\n";
    } ?>

    </div><!-- #leader-container -->
    </div><!-- #leader -->
    <?php } ?>

    <?php }
    add_action('thematic_belowheader','childtheme_leaderasides',6);

    // Add a widgetized aside above the main asides with the start of a wrapper: #sidebar
    function childtheme_sidebarstart() { ?>
    <div id="sidebar">
    <div id="crown" class="aside crown-aside">
    <ul class="xoxo">
    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('crown-aside') ) : // begin sidebar crown widgets ?>

    <li id="thematic-power-blog-subscribe" class="widgetcontainer widget_thematic_power_blog_subscribe">
    <h3 class="widget-title"><?php _e('Subscribe', 'thematic'); ?></h3>

    <?php endif; // end sidebar crown widgets ?>

    </div><!-- #crown .aside -->
    <?php }
    add_action('thematic_abovemainasides','childtheme_sidebarstart');

    // Close div#sidebar
    function childtheme_sidebarend() { ?>
    </div><!-- #sidebar -->
    <?php }
    add_action('thematic_belowmainasides','childtheme_sidebarend');

    // Add breadcrumbs above the footer if Yoast Breadcrumbs are installed
    // http://yoast.com/wordpress/breadcrumbs/
    function childtheme_breadcrumbs() {
    if ( function_exists('yoast_breadcrumb') ) { ?>
    <div id="breadcrumb-nav">
    <div id="breadcrumb-nav-container">

    <?php yoast_breadcrumb('<p id="breadcrumbs">','</p>'); ?>

    </div><!-- #breadcrumb-nav-container -->
    </div><!-- #breadcrumb-nav-container -->
    <?php }
    }
    add_action('thematic_abovefooter','childtheme_breadcrumbs',5);

    // Add Thematic Power Blog Subscribe Widget
    function thematic_power_blog_subscribe() { ?>
    <li id="thematic-power-blog-subscribe" class="widgetcontainer widget_thematic_power_blog_subscribe">
    <h3 class="widget-title"><?php _e('Subscribe', 'thematic'); ?></h3>

    <?php }

    // Register new widgetized areaa and the new widgets
    function childtheme_widgets_init() {

    // Register new widgetized areaa
    register_sidebar(array(
    'name' => 'Crown Aside',
    'id' => 'crown-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    register_sidebar(array(
    'name' => '1st leader Aside',
    'id' => '1st-leader-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    register_sidebar(array(
    'name' => '2nd leader Aside',
    'id' => '2nd-leader-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    register_sidebar(array(
    'name' => '3rd leader Aside',
    'id' => '3rd-leader-aside',
    'before_widget' => '<li id="%1$s" class="widgetcontainer %2$s">',
    'after_widget' => "",
    'before_title' => "<h3 class=\"widgettitle\">",
    'after_title' => "</h3>\n",
    ));

    // Register the new widgets
    register_sidebar_widget('Thematic Power Blog Subscribe', 'thematic_power_blog_subscribe');

    }
    add_action( 'init', 'childtheme_widgets_init' );

    ?>`

    Posted 13 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.