• I would like my theme to have two side-bars,How do I edit the code to properly do this? Furthermore, I’d like there to be one area at the top right corner where I can add a widget, like a picture that takes up the whole width of the side, then below that two sidebar columns for ad banners. Any help guys? My site is http://www.joeknowsgayporn.com if you need to see it.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Star by reviewing Theme_Development.

    Thread Starter VirgoJoe81

    (@virgojoe81)

    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.

    Thread Starter VirgoJoe81

    (@virgojoe81)

    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.

    Thread Starter VirgoJoe81

    (@virgojoe81)

    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.

    Thread Starter VirgoJoe81

    (@virgojoe81)

    Thank you. Hopefully I can get this all good. 🙂

    Thread Starter VirgoJoe81

    (@virgojoe81)

    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.

    Thread Starter VirgoJoe81

    (@virgojoe81)

    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).

    Thread Starter VirgoJoe81

    (@virgojoe81)

    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’
    ));

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[NSFW] Adding Side bar?’ is closed to new replies.