Widgetizing theme (box set 1.2)
-
I have tried widgetizing the box set 1.2 theme but with no luck.
This is how my side bar file looks (to me a mess):
http://wordpress.pastebin.ca./855031
and this is my functions file:
<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<div class=”title”>’,
‘after_title’ => ‘</div>’,
));
?>I did search posts on here..but ive tried everything that i have read with no luck. Am i missing something.
Thank you for your help…really appreciate it.
-
Repaste your sidebar code to the pastebin and report back the link.
Put this in functions.php:
<?php if ( function_exists('register_sidebar') ) register_sidebar(array( 'before_widget' => '<div id="%1$s" class="widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>', )); ?>And put this in as your sidebar.php:
http://wordpress.pastebin.ca/855231Note that the CSS will need some modification, because the existing sidebar was invalid. It had several items with ID’s of “box”, which is incorrect. You may want to change the CSS to replace
#boxwith.widgetinstead.Hey,
thank you so much for your help.
I did all this, and changed the css but it still doesnt lewt me use the widget tab in wordpress?
thanks very much.
Make sure that you have the latest version of WordPress.
i do!
Well then I don’t know what to tell you. Go to Presentation->Sidebar Widgets and arrange your widgets. That’s it. There’s nothing else to be done.
Ok but it says no sidebar is defined…
I will try and see if I can do something.
Thanks for all your help.
it says no sidebar is defined…
Then you did not put that code above into your theme’s functions.php file. Make sure you spelled the name of the file correctly, it must be “functions.php” and it must be in your active theme’s directory.
awww thanksssssssssssssss tonnes.
the problem was the file was called functions(2).php – i had to create a functions file because the theme didnt have one and it was named that..i changed that and now it works.
thanks for your help and patience π
this helped me as well. thanks!
The topic ‘Widgetizing theme (box set 1.2)’ is closed to new replies.