Skip to content

Instantly share code, notes, and snippets.

@ChromeOrange
Created July 29, 2012 22:52
Show Gist options
  • Select an option

  • Save ChromeOrange/3202368 to your computer and use it in GitHub Desktop.

Select an option

Save ChromeOrange/3202368 to your computer and use it in GitHub Desktop.
Change number of products on homepage #WhiteLight
<?php
// Edit wp-content/themes/whitelight-commerce/functions.php
// Find this on or around line 60
$new_options[] = array( "name" => "Number of Products",
"desc" => "Select the number of products that should appear in the shop area on the home page.",
"id" => $shortname."_shop_area_entries",
"std" => "3",
"class" => "hidden",
"type" => "select",
"options" => $other_entries);
// Replace with this
$new_options[] = array( "name" => "Number of Products",
"desc" => "Select the number of products that should appear in the shop area on the home page.",
"id" => $shortname."_shop_area_entries",
"std" => "3",
"class" => "hidden",
"type" => "text");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment