• I’m not all that good at HTML, but do the know the basic/amateur stuff.

    Currently my blog/site is on a custom theme with just one big column in the centre. I’d like to have a second column on the right of this which is smaller in width.

    The main column at the moment would move over slightly to the left too to fit it in more appropriately, lining up to the edge of the first header link. The second column yet to be installed would line up at the edge of the final link on the header links.

    I don’t know how better to explain it, but hopefully you understand what I mean. Here’s my site:
    http://www.deadpress.co.uk

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter DEAD PRESS

    (@dead-press)

    Bump!

    well… usually sites w/ columns uses the structure:

    <div class="container">
      <div class="content"></div>
      <div class="sidebar"></div>
    </div>

    and css (being really simple):

    .content {
      float:left
    }
    .sidebar {
      float:left
    }

    Verify inside CSS for the float rule on the divs… now, just add another div on the right/left (depending on the css float and your idea) of the container.. and define the css rule for it, adding a float:left/right

    Thread Starter DEAD PRESS

    (@dead-press)

    I understand all that, but don’t I have to define that there’s a sidebar for widgets to work and make a sidebar.php page that will then show up on the appearance editor on the admin dashboard?

    I don’t know where to put that via the FTP thing, as in which folder and what needs to be in it.

    And on top of this I don’t know where to put extra functions, such as a search bar or a drop down menu for tags? I’m so useless at this, haha.

    your sidebar file can have any name you choose… let’s say you have the sidebar.php. It must, at least (if you want widgets), have the following code:

    <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar('TheSideBarNameThatYouWant') ) : else : ?>
    <?php endif; ?>

    now you just have to write in function.php that:

    if ( function_exists('register_sidebar') )
    	register_sidebar(array(
    		'name' => 'TheSideBarNameThatYouWant',
    		'before_widget' => '<div id="%1$s" class="menu-widget">',
    		'after_widget' => '</div>',
    		'before_title' => '<span>',
    		'after_title' => '</span>',
    	));
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Making two colums’ is closed to new replies.