/ Published in: PHP
With this CSS to make the page 2 main content columns:
.custom #content .sidebar {width:48%; margin-right:2%; float:left;}
.custom #content .sidebar {width:48%; margin-right:2%; float:left;}
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 } }