WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How do I get rid of the sidebar stuff?

[Resolved] How do I get rid of the sidebar stuff?

  • Greetings! I’m using a theme that has some sidebar stuff already set up. I want to remove the calendar and other stuff, but when I go into widgets the sidebar boxes you put sidebar stuff in is empty so I can’t drag them out of there, there is nothing to drag!

    Here’s the link to see the sidebar stuff: http://www.oldmannewbie.com/

    Thanks!

Viewing 14 replies - 1 through 14 (of 14 total)
  • add a text widget to sidebar and leave it empty

    When you put new widgets in, usually with most themes, the default stuff goes away

    Wow, everything went away except for Meta and Search when I added an empty text box. Suggestions?

    http://www.oldmannewbie.com/

    Thanks!!

    find the search and meta in your theme and delete them?

    those are hardcoded in your sidebar.php. Open the file and remove functions for meta..

    Looking at your code, they are pretty well labelled, shouldn’t be hard to get rid of them….

    just be careful in there!

    What exact parts do I need to whack to get rid of Search and Meta?

    Here is the sidebar.php code:

    <div id=”sidebar”>
    <div id=”sidebar-top”></div>
    <div id=”sidebar-content”>
    <div id=”subcolumn”>

    <div id=”search”>
    <form id=”searchform” method=”get” action=”<?php bloginfo(‘home’); ?>/”>
    <div>
    <input type=”text” class=”form-input” value=”<?php _e(‘Enter keyword(s) and hit enter’, ‘desk-mess-mirrored’); ?>” onblur=”if(this.value == ”) {this.value = ‘<?php _e(‘Enter keyword(s) and hit enter’, ‘desk-mess-mirrored’); ?>’;}” onfocus=”if(this.value == ‘<?php _e(‘Enter keyword(s) and hit enter’, ‘desk-mess-mirrored’); ?>’) {this.value = ”;}” name=”s” id=”s” />
    <input type=”submit” class=”hidden search-submit” id=”search-submit” value=”<?php _e(‘Search’ , ‘desk-mess-mirrored’); ?>” />
    </div>
    </form>
    </div> <!– #search –>

    • <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>

      <div class=”widget”>
      <h2 class=”hl”><?php _e(‘Calendar’, ‘desk-mess-mirrored’); ?></h2>
      <div align=”center”>
      <?php get_calendar(0); ?>
      </div>
      </div>

      <div class=”widget”>
      <?php wp_list_bookmarks(‘title_li=&category_before=&category_after=’); ?>
      </div>

      <div class=”widget”>
      <h2 class=”hl”><?php _e(‘Categories’, ‘desk-mess-mirrored’); ?></h2>

        <?php wp_list_categories(‘title_li=&show_count=1’); ?>

      </div>

      <div class=”widget”>
      <h2 class=”hl”><?php _e(‘Archives’, ‘desk-mess-mirrored’); ?></h2>

        <?php wp_get_archives(‘type=monthly&show_post_count=1’); ?>

      </div>

      <?php endif; ?>

      <?php if (function_exists(‘dynamic_sidebar’) && dynamic_sidebar(2) ) : else : ?>

      <div class=”widget”>
      <h2><?php _e(‘Meta’, ‘desk-mess-mirrored’); ?></h2>

      </div>
      <?php endif; ?>

    </div> <!– #subcolumn –>
    </div> <!–#sidebar-content –>

    <div id=”sidebar-bottom”></div>
    </div>

    Something happened with the post button and I posted twice. Sorry.

    <div id="search">
    <form id="searchform" method="get" action="<?php bloginfo('home'); ?>/">
    <div>
    <input type="text" class="form-input" value="<?php _e('Enter keyword(s) and hit enter', 'desk-mess-mirrored'); ?>" onblur="if(this.value == '') {this.value = '<?php _e('Enter keyword(s) and hit enter', 'desk-mess-mirrored'); ?>';}" onfocus="if(this.value == '<?php _e('Enter keyword(s) and hit enter', 'desk-mess-mirrored'); ?>') {this.value = '';}" name="s" id="s" />
    <input type="submit" class="hidden search-submit" id="search-submit" value="<?php _e('Search' , 'desk-mess-mirrored'); ?>" />
    </div>
    </form>
    </div> <!-- #search -->

    will take care of the search

    <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar(2) ) : else : ?>
    
    <div class="widget">
    <h2><?php _e('Meta', 'desk-mess-mirrored'); ?></h2>
    
    <?php wp_register(); ?>
    
    <?php wp_loginout(); ?>
    Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>
    <abbr title="XHTML Friends Network">XFN</abbr>
    WordPress
    <?php wp_meta(); ?> 
    
    </div>
    <?php endif; ?>

    should take care of the meta i believe

    (make sure you have a backup handy tho…. if something goes wrong just reupload this file….

    Thank you! I’ll give it a try!!

    Thank you RVoodoo!!! It worked! I added a text box widget and everything still works! But I do have a copy of the original theme code just in case. 🙂 That was very helpful and educational. Thanks again!

    @rvoodoo – Thanks for helping out.

    @nick5nichols – feel free to contact me if you need help finding something in my Desk Mess Mirrored theme, I’d be glad to help.

    im having the same issue with my site

    hushrecordings.com/wordpress

    <?php /* Mystique/digitalnature */
    
    $layout = get_mystique_option('layout');
    
    if((!isLayoutTemplate() && ($layout!='col-1')) || (isLayoutTemplate() && (!is_page_template('page-1col.php')))):
    
      if ((is_page_template('page-3col.php') || is_page_template('page-3col-left.php') || is_page_template('page-3col-right.php')) || (!isLayoutTemplate()  && ($layout=='col-3' || $layout=='col-3-left' || $layout=='col-3-right'))) include(TEMPLATEPATH . '/sidebar2.php');
    ?>
    
    <div id="sidebar">
     <ul class="sidebar-blocks">
    
            <?php 	/* Widgetized sidebar, if you have the plugin installed. */
    
            if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
    
              <?php if(!is_search()): ?>
              <li class="block">
              	 <?php get_search_form(); ?>
              </li>
              <?php endif; ?>
    
               <?php the_widget('SidebarTabsWidget', array('orderby' => 'name', 'postcount' => true, 'showcategories' => true, 'showtags' => true, 'showarchives' => true, 'showpopular' => true, 'showrecentcomm' => true), array('widget_id'=>'instance-sidebartabswidget','before_widget' => '<li class="block"><div class="block-sidebar_tabs">','after_widget' => '</div></li>','before_title' => '<h3 class="title"><span>','after_title' => '</span></h3><div class="block-div"></div><div class="block-div-arrow"></div>')); ?>
    
               <?php the_widget('TwitterWidget', array('title'=>'My latest twitts', 'twituser'=>'WordPress', 'twitcount'=>'8'), array('before_widget' => '<li class="block"><div class="block-twitter">','after_widget' => '</div></li>','before_title' => '<h3 class="title"><span>','after_title' => '</span></h3><div class="block-div"></div><div class="block-div-arrow"></div>')); ?>
    
               <li class="block">
                <div class="block-bookmarks">
                  <h3 class="title"><span><?php _e("Blogroll","mystique"); ?></span></h3>
                  <div class="block-div"></div><div class="block-div-arrow"></div>
                  <ul>
                   <?php
                    $links = get_bookmarks();
                    foreach ($links as $link)
                     echo '<li><a href="'.$link->link_url.'" target="_blank">'.$link->link_name.'</a></li>';
                    ?>
                  </ul>
                </div>
               </li>
              <ul>
    
                 <?php wp_register(); ?>
                 <li><?php wp_loginout(); ?></li>
                 <li><a href="http://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="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
                 <li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
                 <?php wp_meta(); ?>
    
              </ul>
                </div>
               </li>
    
            <?php endif; ?>
    
     </ul>
    </div>
    <?php endif; ?>
Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Resolved] How do I get rid of the sidebar stuff?’ is closed to new replies.
Skip to toolbar