Dashboard not seeing Widgets
-
The Theme to my blog wasn’t originally did not have a widget ready sidebar.
<div id='menu-left'> <div class='menu2'> <ul> <li id="categories"> <?php wp_list_categories('orderby=name&show_count=0&title_li=<h2>Categories</h2>'); ?> </li> </ul> <ul> <li id="archives"><h2><?php _e('Monthly Archives'); ?></h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> </ul> <ul> <li id="resources"><h2><?php _e('Our Partners'); ?></h2> <ul> <?php get_links('-1', '<li>', '</li>', '<br />'); ?> </ul> </li> </ul> <ul> <li id="syndication"><h2><?php _e('RSS Subscription'); ?></h2> <ul> <li><a href="feed:<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>"><?php _e('<abbr title="Really Simple Syndication">Entries RSS</abbr>'); ?></a></li> <li><a href="feed:<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li> </ul> </li> </ul> <ul> <li id="meta"><h2><?php _e('Meta'); ?></h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <li><a href="https://validator.w3.org/check/referer" title="<?php _e('This page validates as XHTML 1.0 Transitional'); ?>"><?php _e('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li> <li><a href="https://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> <li><a href="https://www.ads-software.com/" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.'); ?>"><abbr title="WordPress">wordpress</abbr></a></li> <?php wp_meta(); ?> </ul> </li> </ul> </div> <div class='menu1'> <ul> <li id="advertisement"><h2>Conventions</h2> <ul><li> <?php resources(); ?> </li> </ul> </li> </ul> </div> </div>
So I grabbed some widgetized code and placed it in:
<div id='menu-left'> <div class='menu2'> <ul> <?php /* Widgetized sidebar, if you have the plugin installed. */ if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?> <li> <?php get_search_form(); ?> </li> <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it. <li><h2>Author</h2> <p>A little something about you, the author. Nothing lengthy, just an overview.</p> </li> --> <?php if ( is_404() || is_category() || is_day() || is_month() || is_year() || is_search() || is_paged() ) { ?> <li> <?php /* If this is a 404 page */ if (is_404()) { ?> <?php /* If this is a category archive */ } elseif (is_category()) { ?> <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p> <?php /* If this is a yearly archive */ } elseif (is_day()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the day <?php the_time('l, F jS, Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <?php the_time('F, Y'); ?>.</p> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for the year <?php the_time('Y'); ?>.</p> <?php /* If this is a monthly archive */ } elseif (is_search()) { ?> <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p> <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p> <?php } ?> </li> <?php }?> <?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?> <li><h2>Archives</h2> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?> <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?> <?php wp_list_bookmarks(); ?> <li><h2>Meta</h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <li><a href="https://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li> <li><a href="https://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li> <li><a href="https://www.ads-software.com/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li> <?php wp_meta(); ?> </ul> </li> <?php } ?> <?php endif; ?> </ul> <div class='menu1'> <ul> <li id="advertisement"><h2>Conventions</h2> <ul><li> <?php resources(); ?> </li> </ul> </li> </ul> </div> </div>
The Menu 2 part is the part that’s important. When I use this code the sidebar becomes widget compatible but for some reason the Dashboard doesn’t recognize the widgets app and still gives me the message “No Sidebars Defined” even though you can clearly see the widgets on the blog.
Not sure how I’m suppose to get it to be widgetized in the Dashboard.
Thanks for any future help
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dashboard not seeing Widgets’ is closed to new replies.