Related Posts

Spread the word

Digg this post

Bookmark to delicious

Stumble the post

Add to your technorati favourite

Subscribes to this post

43 users responded to this post

John Moravec said in July 25th, 2007 at 22:15    

Ah, I see what’s wrong. Quotes came through formatted improperly. Try it again with the fixed code, above…

John Moravec said in July 25th, 2007 at 22:26    

I think what’s happening is Wordpress is trying to do us all a favor by “fixing” the single quotes into left and right single quotes. You should try retyping them in to see if that’ll fix the problem. In the meantime, I’ll see if I can coax WP into displaying them correctly when printed as a code block…

John Moravec said in July 25th, 2007 at 22:38    

Nope. It goes in your theme’s directory. In your case, it’s located at /home/really/public_html/wp-content/themes/leia-english-10/functions.php

John Moravec said in July 25th, 2007 at 22:45    

Nope. If you’re running a recent version of WP (2.0 and later?), widget support is built in. Set them up from your Presentation tab.

Sorry, but that’s all the support I can give you. I’m off to bed!

Jason said in July 25th, 2007 at 22:04    

Thanks for the code John! I replaced the code sidebar.php as you suggested and I created a file called functions.php & placed it in my theme’s folder with the code you suggested but I ma getting this error: Parse error: syntax error, sidebar.php on line 61, see my blog here: http://www.reallyreally.net/

John Moravec said in July 25th, 2007 at 22:15    

Ah, I see what’s wrong. Quotes came through formatted improperly. Try it again with the fixed code, above…

Jason said in July 25th, 2007 at 22:19    

I am not sure if you wanted me to edit the functions.php file that is located in the wp-includes folder or to create another file called functions.php that resides in my “leia-english-10″ theme folder. So I did both and when the files were uploaded I got a functions.php error so I changed the wp-includes>functions.php back to it’s original state and now I get the error that I mentioned in the previous post.

Here is the code surrounding line 61 of sidebar.php:

Categories

Pages’ ); ?>

Jason said in July 25th, 2007 at 22:20    

Categories

Pages’ ); ?>

John Moravec said in July 25th, 2007 at 22:26    

I think what’s happening is Wordpress is trying to do us all a favor by “fixing” the single quotes into left and right single quotes. You should try retyping them in to see if that’ll fix the problem. In the meantime, I’ll see if I can coax WP into displaying them correctly when printed as a code block…

Jason said in July 25th, 2007 at 22:35    

So does the second block of code go into: wp-includes>functions.php
I am still getting the error on line 61 of sidebar.php.

Jason said in July 25th, 2007 at 22:42    

Cool ok got that, now do I need to have the widgets plugin installed from here to make this work? http://automattic.com/code/widgets/ After reading this I assume I do? http://automattic.com/code/widgets/themes/

John Moravec said in July 25th, 2007 at 22:45    

Nope. If you’re running a recent version of WP (2.0 and later?), widget support is built in. Set them up from your Presentation tab.

Sorry, but that’s all the support I can give you. I’m off to bed!

Jason said in July 25th, 2007 at 22:49    

Ok thanks mate I will try & work it ;)

Jason said in July 26th, 2007 at 5:03    

Cheers so much John, I now have it up and running. Not sure why I couldn’t get it working at the start lol :) If anyone is needs another/different explanation of how to do this I have made a post about it here with full credit to educationfutures.com! http://www.reallyreally.net/chit-chat/add-widgets-to-wordpress-leia-theme.html
All the best,
Regards Jason.

Mathcv said in August 8th, 2007 at 9:36    

Ohhhh i try this, but not work for me…
When i go to Presentation>Widget, appear this menssage:

Y do exactly you example…
Modify and Remplace the code in sidebar.php
Make file called function.php and upload this files…

I using Wordpress 2.2 with widget-plugin integrated…

Any suggest?
Thanks for advanced…

Mathcv said in August 8th, 2007 at 9:37    

Ohhhh i try this, but not work for me…
When i go to Presentation>Widget, appear this menssage:

No Sidebars Defined.
You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.

Y do exactly you example…
Modify and Remplace the code in sidebar.php
Make file called function.php and upload this files…

I using Wordpress 2.2 with widget-plugin integrated…

Any suggest?
Thanks for advanced…

John Moravec said in August 8th, 2007 at 10:32    

You didn’t provide enough details on what you did, so I have no idea what went wrong.

Mathcv said in August 9th, 2007 at 6:28    

Sorry… but i did what your you wrote…

Pleace, see my 2 files:

http://delakroketa.joolo.com/sidebar.txt
http://delakroketa.joolo.com/function.txt

I not understand that it happens…
Thanks…

Mathcv said in August 9th, 2007 at 6:31    

already that this happening, I cannot believe it…
Wrote function.php and the correct thing is functionS.php…

You can erase the previous commentary, the one that contains links pleace?

Sorry…
And thanks for all…

John Moravec said in August 9th, 2007 at 12:14    

I’m glad that it worked… eventually!

John Moravec said in August 9th, 2007 at 12:14    

I’m glad that it worked… eventually!

Rod said in August 15th, 2007 at 17:11    

John…great work! Thanks for the codes.
I’m just wondering, how do I change the size of the text on the Sidebar like the one you have? I’m looking all over Style.css can’t figure it out! Thanks a million.

John Moravec said in August 15th, 2007 at 17:17    

It’s all in your css file. Make sure it refers to h2 class=”widgettitle”.

Rod said in August 15th, 2007 at 17:11    

John…great work! Thanks for the codes.
I’m just wondering, how do I change the size of the text on the Sidebar like the one you have? I’m looking all over Style.css can’t figure it out! Thanks a million.

John Moravec said in August 15th, 2007 at 17:17    

It’s all in your css file. Make sure it refers to h2 class=”widgettitle”.

jayne d'Arcy said in August 23rd, 2007 at 0:19    

I sort of got this to work. I have v2.2.1 of WP. The problem that I’m having is that after I insert all the code in the correct places I go into Widgets to place my widgets. I have two widget sidebars showing, but when I try to drag widgets onto the second sidebar, they won’t stay put. If that’s not clear, then here’s an example: I have the Archives widget and I try to drag it onto Sidebar 2. When I drop it, it pops right back into the box of widgets.

For now I’m just using the left sidebar, but if you have a solution, let me know.

paul crilley said in August 23rd, 2007 at 8:01    

I managed to insert the coade, and the “categories” and “Pages” appeared in my sidebar, but when I go to wordpress page I get this message No Sidebars Defined.
You are seeing this message because the theme you are currently using isn’t widget-aware, meaning that it has no sidebars that you are able to change. For information on making your theme widget-aware, please follow these instructions.

Any ideas why?

John Moravec said in August 23rd, 2007 at 11:33    

Yikes.

Kapikua permitting, I’ll try to assemble a clean, widgetized Leia for download in the near future.

Anonymous said in August 23rd, 2007 at 13:50    

Aargh. Sorry. I didn’t mean to add to your workload or anything. I was hoping I was doing something stupid that could be fixed relatively simply.

jayne d'Arcy said in August 23rd, 2007 at 18:38    

I figured out what my problem was and apparantly it’s something with the 2.2.1 version of wordpress. What happens is that when you have two or more sidebars, it will not allow you to move widgets modules from one sidebar to the next unless you have put something from the widgets box FIRST into each sidebar. I’m guessing this glitch is fixed with 2.2.2 version.

Anyway, I’m liking just the one sidebar, so don’t bang your head over my problem. :)

paul crilley said in August 24th, 2007 at 7:16    

I’m running 2.2 and have the problem, though, so it can’t be fixed. :-(

Darrin said in September 14th, 2007 at 16:18    

Weird. I followed the directions and the Sidebar Arrangement page shows up. I have the sidebars that I drag my widgets into. I save them and it says “Saved”. Then I go to my blog and nothing’s changed. I even cleared my cache and reloaded. Nada.

John Moravec said in September 16th, 2007 at 9:20    

Darrin, it looks like you figured it out. Also, some hosts tend to cache the template files in odd ways. Sometimes you need to wait for it to refresh…

Vigi said in September 19th, 2007 at 10:10    

Wooooop!

Guy, I love you!
And of course the widget-function!

Vigi said in September 19th, 2007 at 10:10    

Wooooop!

Guy, I love you!
And of course the widget-function!

Darrin said in September 19th, 2007 at 13:45    

Unfortunately, no, I didn’t figure it out. The sidebar is there, but changing my widgets and saving leaves me with the exact same sidebar. No change. Grrr….

Darrin said in September 20th, 2007 at 11:23    

Aha! I got it to work finally. I had to replace “&&” in the sidebar.php file with “||”. Now it works.

Sam said in September 27th, 2007 at 14:26    

Thanks so much for the Widget Aware leia. It worked great in two minutes! One question: where would I go to change the formatting so that there is some space between all the widgets. For example, if you have categories, and then recent comments, to not have them standing right on each other’s head. Just to create a couple lines of space between each widget. Also, is there a way to enter items into the widget sidebar and have them take up both columns, but then have other widgets just take up one column or the other? Many thanks for any thoughts.
P.S. I find your site very interesting in itself, and hope to explore it more soon. Landed looking for Leia help!

John Moravec said in September 27th, 2007 at 14:37    

You should change the formatting by tweaking the CSS file.

Daniel said in March 27th, 2008 at 18:35    

Hi,
I managed to widgetize this wonderful theme with ur help, but now my plugin nextgen gallery from alex raabe does not work. pictures added into articles are not shown and the nextgen slideshow widget does not work to. Do you have a hint for the reason of this or how i can solve this problem?

Daniel said in March 27th, 2008 at 20:53    

sorry solved it, was a bug in the german translation of this great theme!

Burn said in April 7th, 2008 at 17:42    

after i got the sidebar widgets working correctly, i made the files avalible for download.
you can get them here
http://www.burnstyle.net/2008/04/07/since-no-on...

David said in June 7th, 2008 at 18:36    

Thanks for that…works just fine.

http://www.fiveandunder.com.au/blog/

all the best

David

3 Pingback & Trackback On This Post
ReallyReally.net said in July 26th, 2007 at 4:17    
Exploring New Learning Spaces » links for 2007-10-06 said in October 6th, 2007 at 6:18    
Leave Your Comments Below

Bad Behavior has blocked 541 access attempts in the last 7 days.