WordPress.org

Ready to get started?Download WordPress

Forums

Raindrops defaulth sidebar (8 posts)

  1. mrcc0521
    Member
    Posted 2 years ago #

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

  2. codingpet
    Member
    Posted 2 years ago #

    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.

  3. mrcc0521
    Member
    Posted 2 years ago #

    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

  4. mrcc0521
    Member
    Posted 2 years ago #

    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

  5. codingpet
    Member
    Posted 2 years ago #

    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.

  6. codingpet
    Member
    Posted 2 years ago #

    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.]

  7. codingpet
    Member
    Posted 2 years ago #

    $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>';
    }
  8. mrcc0521
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic