restoring mimbo sidebar.php

  • Unknown's avatar

    I changed some code on the sidebar.php file in the Mimbo theme. Then I erased my changes (I thought) but the sidebar disappeared. I must have erased a part of the original Mimbo code.

    Below is my current sidebar code. Could anyone please help me fix it back to the “out of the box” state, or tell me where I could copy the mimbo sidebar.php code in it’s original form?

    I don’t want to start the whole mimbo theme from scratch because there are changes (made by better programmers than I) on other .php docs.

    Many thanks,
    Sarah

    <div id=”sidebar”>

    <!–BEGIN ‘MORE FROM THIS CATEGORY’–>
    <?php
    if ( is_single() ) :
    global $post;
    $categories = get_the_category();
    foreach ($categories as $category) :
    $posts = get_posts(‘numberposts=4&exclude=’ . $GLOBALS[‘current_id’] . ‘&category=’. $category->term_id);
    if(count($posts) > 1) {
    ?>

    <div class=”widget”>
    <h3><?php _e(‘More in’,’Mimbo’); ?> ‘<?php echo $category->name; ?>'</h3>

    </div>

    <?php } ?>

    <?php endforeach; ?>
    <?php endif; ?>

    <!–END–>

  • Unknown's avatar

    Sorry, you are in the wrong forum and need to head over to http://wordpress.ORG/support/ as that is where self-hosted wordpress blogs using the software from wordpress.ORG are supported.

    These forums are for those hosted here on the wordpress.COM free hosting service and things here work differently and our answers typically will not work for you.

    If you do not know the difference, see this support document: http://support.wordpress.com/com-vs-org/ .

  • Unknown's avatar

    oh, sorry, I was working on both sites so I got confused. Thanks for the redirection!

    Sarah

  • Unknown's avatar
  • The topic ‘restoring mimbo sidebar.php’ is closed to new replies.