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

  1. Roger N
    Posted 3 years ago #


    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!


  2. Qurl
    Plugin Author

    Posted 3 years 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
    Posted 3 years 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; ?>
    <!-- #primary .widget-area -->
    <?php endif; ?>

    Anything you see here that might affect things?

  4. Qurl
    Plugin Author

    Posted 3 years ago #

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

  5. Roger N
    Posted 3 years 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

  • Dynamic Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic