View Single Post
Old March 18th, 2012, 11:33 AM
lesljr lesljr is offline
Join Date: Jan 2012
Posts: 80

here is what the functions.php file looks like

/* This is the main function.php override file - it controls most of the stuff happening with the theme */

/* Anything you need to actively do, put here. This is the first code that will get run whenever the
child theme is activated and used. This example just re-defines a function, but you could do anything.

function weaver_continue_reading_link() {
/* very simple example - override the read more text... */

$msg = '[CLICK TO
return ' <a class="more-link" href="'. get_permalink() . '">' . $msg . '</a>';

function dfr_get_brands() {
global $wpdb;
$brands = $wpdb->get_results("SELECT brand FROM ".$wpdb->prefix."dfr_shop_products GROUP BY brand");
$list = array();
foreach ($brands as $brands) {
$list[] = $brands->brand;
return $list;