WordPress.org

Forums

[resolved] sidebar edit-php help please (6 posts)

  1. arkan
    Member
    Posted 8 years ago #

    Hello y`all, I'd like some help with the mistylook-101 theme. I'm in the process of modifying the theme so I'd really appreciate your help (my blog's adress is http://arkan.yeahost.com/) on this issue:

    I want to remove the "page" and the "meta" section from the sidebar (just deleting them from sidebar.php doesn't seem to help).

    In addition to that, I've seen that this theme has some display problem with IE 7 (the sidebar is shown under the posts in the main page when browsing with IE).

    Again, please lend me a hand :)
    Greetings!

  2. peiqinglong
    Member
    Posted 8 years ago #

    Open up sidebar.php and delete the sections on page and meta.

  3. arkan
    Member
    Posted 8 years ago #

    well, this is the code I removed and the sidebar just just disappeared:

    <li class="sidebox">
    <h2><?php _e('Pages'); ?></h2>

      <?php wp_list_pages('title_li=' ); ?>

    <?php if(is_home()) { mistylook_ShowLinks(); ?>
    <li class="sidebox">
    <h2><?php _e('Meta'); ?></h2>

    <?php }?>
    <?php endif; ?>

    (sorry for the long post, I'm a noob tryin` to understand PHP :)

  4. peiqinglong
    Member
    Posted 8 years ago #

    That doesn't look like the complete sidebar.

    <h2><?php _e('Pages'); ?></h2> = display title as Pages (delete this line)
    <?php wp_list_pages('title_li=' ); ?> = show the list of pages and wrap the pages in
    <li> (delete this line)
    <?php if(is_home()) { mistylook_ShowLinks(); ?> = if on the Home page, display the mistylook links (don't want to delete this)
    <h2><?php _e('Meta'); ?></h2> = display title as Meta (delete this line)
    <?php wp_register(); ?> = Show links: Login and Register (delete this line)
    <?php wp_loginout(); ?> = Give logged in user a way to log out (delete this line)
    <?php wp_meta(); ?> = I don't remember what this function calls...

    <?php }?>
    <?php endif; ?>

    = leave these in.

  5. arkan
    Member
    Posted 8 years ago #

    It indeed worked :)
    Thank you very much mate, I owe you a beer :)

  6. peiqinglong
    Member
    Posted 8 years ago #

    Glad to be of help.

Topic Closed

This topic has been closed to new replies.

About this Topic