Star by reviewing Theme_Development.
Thanks! So I can do:
<?php get_header(); ?>
<?php get_sidebar(‘left’); ?>
<?php get_sidebar(‘right’); ?>
<?php get_footer(); ?>
and then add one w/o a name and it will fill the whole side? And can I define the width of the sidebars? Sorry, if that’s answered in the THEME DEVELOPMENT area, I missed it.
Yes – assuming you have both sidebar-left.php and sidebar-right.php template files in your theme. Everything else is down to the HTML you use and your CSS.
The theme doesn’t currently include a right and a left, but I just want to edit the theme so that it does have all that.
Then you have to create those sidebar template files in your theme.
And what do I need to put in those files? Is that discussed in theme development?
And what do I need to put in those files?
The markup and/or WordPress template tags for the content that you want to display.
Is that discussed in theme development?
That’s where you need to start, yes but you will need read further on theme development and using template tags. Also try examining the Twenty Ten theme’s structure & files.
Thank you. Hopefully I can get this all good. 🙂
well, now I messed up my site!
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/joeknows/public_html/wp-content/themes/amphion-lite/functions.php on line 28
Re-upload a fresh copy of your theme’s original functions.php file.
Don’t know how to do that. Not even the slightest clue. I don’t have wp on my computer. It’s all online I’ve been doing it.
download a new copy of your theme http://wordpress.org/extend/themes/amphion-lite onto your computer; unzip it.
use ftp or cpanel to access your theme folder ( /wp-content/thems/amphion-lite/ ) on the server (http://codex.wordpress.org/FTP_Clients);
if functions.php of your theme was already importantly modified, rename it to old-functions.php – otherwise skip this step;
then upload the new copy of functions.php from your computer to the server, to the same location as teh other fuctions.php;
that should get you back into tyour site;
then edit the new functions.php;
(or repair the now called old-functions.php, and rename it later – if it was modified).
Thanks for the help. My site is back up in working order. I still can’t get how to do the side bar things I wanted and anytime I make a change to the function.php it messes up. I dunno. do I just make a child theme?? This is what the theme already has for the sidebar and footer widgetable area.
if (function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Sidebar’,
‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’,
‘after_widget’ => ‘</div><div class=”widget_bottom”></div>’,
‘before_title’ => ‘<h2 class=”widgettitle”>’,
‘after_title’ => ‘</h2><div class=”widget_wrap”>’
));
if (function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘Footer’
));