Home > Everyday Errata > Wordpress Ramblings 1: Lalaland Wordpress Theme and Widgets

Wordpress Ramblings 1: Lalaland Wordpress Theme and Widgets

February 4th, 2009

I’ve been helping the wifearoo get her blog back up and running over at www.princessoftheworld.com and i ran into a hiccup with her chosen theme of LalaLand.  Its available from any number of those poorly laid out free wordpress themes sites, though the credit on the theme goes back to a site that has absolutely no mention of it, so i’m not sure it’s correct.

Anyways, i found the widget implementation wasn’t working, and that all her widgets were appearing incorrectly.  It should have been quicker to find, but it took me a bit to figure out that there needed to be a <ul> before the sidebar function in order for it to work nice.

The sidebar code by default looks like:

<?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>
<ul>

But if you change it to:

<ul><?php if ( !function_exists(‘dynamic_sidebar’)
|| !dynamic_sidebar() ) : ?>

Then the widgets appear to display correctly.    This might not be the absolutely correct way to fix this issue, but it works so far for me.

Share:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon
  • Technorati

Graeme Everyday Errata

  1. Matthew Smith
    February 12th, 2009 at 15:09 | #1

    THANK YOU! Man, i couldn’t figure that out!

  2. john
    February 25th, 2009 at 01:26 | #2

    Hey iv got a problem with the sidebar on this theme also.

    If i try to remove certain widgets then it loses the styling on the list.

    I changed the code you mentioned and as a result, the entire widget list remains regardless if only a one widget is added.

    Did you encounter this? is this the problem you had?

    Thanks heaps man

  3. February 25th, 2009 at 10:51 | #3

    Hi John,

    I’ve not had that behaviour, is it a standard widget you are trying to remove? If so, which one? I’ll see if i can replicate the problem.

  4. June 14th, 2009 at 15:35 | #4

    when i change in the sidebar that code, is disapear my Poll and Newsletter X(

  1. No trackbacks yet.