WordPress.org

Ready to get started?Download WordPress

Forums

Dynamic Widgets
[resolved] Controlling custom menu widget in sidebar (5 posts)

  1. Roger N
    Member
    Posted 1 year ago #

    Hi!

    I am using the Brunelleschi theme together with this plugin and I am trying to control a custom menu shown in a widget in the sidebar using Dynamic Widgets. This works for all other widgets, but for some reason I can't do this with the custom menu, which for some reason is shown on all pages no matter what I do.

    Any ideas about what might be wrong here?

    Thanks for a great plugin!

    http://wordpress.org/extend/plugins/dynamic-widgets/

  2. Qurl
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry, no, not really an idea. Obviously DW is working with the theme, otherwise nothing would have worked. Maybe the widget always shows within this theme?

  3. Roger N
    Member
    Posted 1 year ago #

    Hm... Well this is the code for the sidebar:

    <?php if(brunelleschi_option('sidebar') !== 'none'): ?>
    
    <div id="sidebar" class="widget-area <?php brunelleschi_sidebar_class(); ?>" role="complementary">
    
    <ul class="xoxo"><?php if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>
    
    <li id="search" class="widget-container widget_search">				<?php get_search_form(); ?></li>
    
    <li id="archives" class="widget-container"><h3 class="widget-title"><?php _e( 'Archives', 'brunelleschi' ); ?></h3>
    <ul><?php wp_get_archives( 'type=monthly' ); ?></ul></li>
    
    <li id="meta" class="widget-container"><h3 class="widget-title"><?php _e( 'Meta', 'brunelleschi' ); ?></h3><ul><?php wp_register(); ?><li><?php wp_loginout(); ?></li><?php wp_meta(); ?></ul></li>
    <?php endif; // end primary widget area ?></ul>
    
    <!-- Unified into one widget area, as of 1.1.8 -->
    <?php if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>
    
    <div class="widget-area" role="complementary">
    <ul class="xoxo"><?php dynamic_sidebar( 'secondary-widget-area' ); ?></ul></div><!-- #secondary .widget-area -->
    <?php endif; ?>
    </div>
    <!-- #primary .widget-area -->
    
    <?php endif; ?>

    Anything you see here that might affect things?

  4. Qurl
    Member
    Plugin Author

    Posted 1 year ago #

    No, only a few hardcoded widgets when the sidebar becomes empty.

  5. Roger N
    Member
    Posted 1 year ago #

    Thanks! Not sure what is wrong here, but I found another plugin called Context Aware Sidebars, which lets me add a new widget area to the sidebar which can be controlled to show on certain categories or pages. This lets me add specific widgets into that area, including a custom menu.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic