• Can anyone help me? I’m trying to remove the default sidebar all together. Is there a way to do this?
    Thanks
    Carolyn

Viewing 7 replies - 1 through 7 (of 7 total)
  • You can remove widgets from dashboard->appearances->widgets. But a few themes will write default widgets in their sidebar if no widgets configured. So if you removed all widgets, the default widgets will display. Then you need to edit the theme files. e.g. sidebar.php to remove the codes.

    Thread Starter mrcc0521

    (@mrcc0521)

    Hello, I think I may have removed too much. This is the error message I see when I sign back into my site. It must be very obvious that I am self taught.! Please let me know what I’ve done wrong, if you can.

    Thanks so much,
    Carolyn
    If necessary, I can send you a link to my site.

    Parse error: syntax error, unexpected ‘<‘ in /home/mrcr/texas-sign-works.com/wp-content/themes/raindrops/sidebar-default.php on line 9

    Thread Starter mrcc0521

    (@mrcc0521)

    Hello again, I decided to unistall the raindrops theme and then re-install it. I’m back to having the sidebar. If you could help me again I would greatly appreciate it.
    Thanks again,
    Carolyn

    Parse error: syntax error, unexpected ‘<‘ in /home/mrcr/texas-sign-works.com/wp-content/themes/raindrops/sidebar-default.php on line 9

    Did you edit the sidebar-default.php directly? If yes, please don’t do it in this way. You need to edit widgets in dashboard->appearances->widgets

    I just installed the theme you mentioned. There are two sidebars. The “default sidebar” is for left column. The “Extra Sidebar” is for right column. The theme also have 3 other widget area for other places e.g. footer.

    Of course, please keep at least on widget in the default widget area and extra widget area. Or you will see all the pre-defined widgets.

    If you don’t want to add any widgets and but remove the pre-defined, you can remove codes

    $html = wp_list_pages('title_li=<h2 class="h2">'. __( 'Pages', 'Raindrops').'</h2>&echo=0' );
    			$html .= wp_list_pages('title_li=<h2 class="h2">'. __( 'Pages', 'Raindrops').'</h2>&echo=0' );
    			$html .= '
    <li><h2 class="h2">'. __( 'Archives', 'Raindrops' ). '</h2>';
    			$html .= '
    <ul>'. wp_get_archives('type=monthly&echo=0'). '</ul>
    ';
    			$html .= '</li>
    ';
    			$html .= wp_list_categories('show_count=1&title_li=<h2 class="h2">'. __( 'Categories', 'Raindrops'). '</h2>&echo=0' );
    			if ( is_front_page() || is_page() ) {
    				$html .= wp_list_bookmarks( 'echo=0' );
    				$html .= '
    <li><h2 class="h2">Meta'. __( 'Meta', 'Raindrops' ). '</h2>';
    				$html .= '
    <ul>'. wp_register( '
    <li>', '</li>
    ', false ).'
    <li>';
    				$html .= wp_loginout('', false ).'</li>
    ';
    				// wp_meta();
    				$html .= '</ul>
    </li>
    ';
    			}

    in functions.php

    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser.]

    $html = wp_list_pages('title_li=<h2 class="h2">'. __( 'Pages', 'Raindrops').'</h2>&echo=0' );
    $html .= wp_list_pages('title_li=<h2 class="h2">'. __( 'Pages', 'Raindrops').'</h2>&echo=0' );
    $html .= '<li><h2 class="h2">'. __( 'Archives', 'Raindrops' ). '</h2>';
    $html .= '<ul>'. wp_get_archives('type=monthly&echo=0'). '</ul>';
    $html .= '</li>';
    $html .= wp_list_categories('show_count=1&title_li=<h2 class="h2">'. __( 'Categories', 'Raindrops'). '</h2>&echo=0' );
    if ( is_front_page() || is_page() ) {
    $html .= wp_list_bookmarks( 'echo=0' );
    $html .= '<li><h2 class="h2">Meta'. __( 'Meta', 'Raindrops' ). '</h2>';
    $html .= '<ul>'. wp_register( '<li>', '</li>', false ).'<li>';
    $html .= wp_loginout('', false ).'</li>';
    // wp_meta();
    $html .= '</ul></li>';
    }
    Thread Starter mrcc0521

    (@mrcc0521)

    Hello, i still need help removing the default sidebar. I have already removed the optional sidebar. Unfortunately the answers above might as well be in french!! Please, explain to me as you would a child (or better yet, an elderly!)
    Please, can someone out there help me?!! I’d so appreciate it.
    Kind regards,
    mrcc0521

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Raindrops defaulth sidebar’ is closed to new replies.