Forums

[resolved] Mistylook - Hacking to Add New "Sidebox" in Sidebar (3 posts)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    Hi, I'm tweaking the "Mistylook Theme" for a friend (www.gettingloopy.com) so I can add new sideboxes to the blog's sidebar, or trying to anyways. I'd like to add at least three new sideboxes to the layout.

    I've used Sadish's "ILoveMusic" theme on my blog with no problems in hacking the CSS/PHP to add new sidebars (and change colors, backgrounds, etc). So, I'm not new to this. But for some reason, I just can't seem to get the Mistylook theme to accept new sideboxes. No matter where I add them to the sidebar.php file, they are invisible (but everything that was there before adding the code is still there).

    This is what I've tried to add to the sidebar.php file unsuccessfully:

    <li class="sidebox">
    <h3><?php _e('HFL Patterns','ml'); ?></h3>
    </h3>
    <img src="http://gettingloopy[DOT]com/wp-content/HFL_Ad.gif" width="160" height="211" alt="" title="HFL Crochet and Knit Patterns" />

    (minus the [DOT] parts of course)
    No matter where I place it, it won't work, which makes me think I have to approach this in a different way than I did on my blog. Can someone point me in a direction so I can make this work?

    Thanks!

  2. Anonymous
    Unregistered
    Posted 3 years ago #

    Solved!

  3. greenpeas
    Member
    Posted 3 years ago #

    Do you mind expanding on what ya did?
    I have been trying to unravel the mysteries of adding an extra sidebar on MisyLook theme as well... and the sidebox seems to throw things off.

    This is what I have tried:

    if ( function_exists('register_sidebar') )
    register_sidebar(array(
    'before_widget' => '<li class="sidebox">',
    'after_widget' => '</li>',
    'before_title' => '<h3>',
    'after_title' => '</h3>',
    ));
    if ( function_exists('register_sidebar') )
    register_sidebar(array('name'=>'sidebar_about',
    'before_widget' => '',
    'after_widget' => '',
    'before_title' => '<h2>',
    'after_title' => '</h2>',
    ));

    I tried just adding the
    'before_widget' => '<li class="sidebox">',
    code to the new register; but that didn't work...

    What did you do?
    Thanks!

    ps, you've done a great job with your site!

Topic Closed

This topic has been closed to new replies.

About this Topic