Return to Snippet

Revision: 42226
at March 2, 2011 01:04 by kristarella


Initial Code
register_sidebars(2,
    array(
        'name' => 'Home Column %d',
        'id' => 'home-column-$i',
        'before_widget' => '<li class="widget %2$s" id="%1$s">',
        'after_widget' => '</li>',
        'before_title' => '<h3>',
        'after_title' => '</h3>'
    )
);

$loopty_loop = new my_loops;

class my_loops extends thesis_custom_loop {
	function front() {
?>
<div id="sidebars">
	<div id="home_column_1" class="sidebar">
		<ul class="sidebar_list">
			<?php thesis_default_widget('home-column-1'); ?>
		</ul>
	</div>
	<div id="home_column_2" class="sidebar">
		<ul class="sidebar_list">
			<?php thesis_default_widget('home-column-2'); ?>
		</ul>
	</div>
</div>
<?php
	}
}

Initial URL

                                

Initial Description
With this CSS to make the page 2 main content columns:
.custom #content .sidebar {width:48%; margin-right:2%; float:left;}

Initial Title
Widgetised home page

Initial Tags
wordpress

Initial Language
PHP