Skip to content

Commit

Permalink
Update to the home page template to set defaults for widget area rows…
Browse files Browse the repository at this point in the history
… and widths
  • Loading branch information
jmr06005 committed Jan 14, 2015
1 parent 594391c commit 069b9ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions page-home.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* @package cornerstone
*/
$rows = get_theme_mod('homepagerows');
$rows = get_theme_mod('homepagerows', '2');
$count = 1;
get_header(); ?>

Expand All @@ -15,7 +15,7 @@
<?php for($i=0; $i<$rows; $i++){ /* Begin Homepage Builder... */?>
<div class="row">
<?php
$widths = get_theme_mod('homepage_'.$i);
$widths = get_theme_mod('homepage_'.$i, '12');
$widths = explode(',',$widths);
if(count($widths) == 1) $widths[0] = 12;
foreach($widths as $width){
Expand Down

0 comments on commit 069b9ff

Please sign in to comment.