How to activate Motors theme

First off all you have to get the all demo packages, download them, and put the the whole directory in your theme directory: motors/packages. Then go to file /admin/includes/theme.php, at line 59, search for the code:

 function stm_check_auth() {

Change it with

 function stm_check_auth()
{ return true;

Then go to line 92, search for this code:

function get_package( $item, $ftype ){ 
$packages = array(); 

$src = get_transient( 'stm_installer_package' ); 
if ( false !== $src ) { 
if ( !empty($src[$item]) ) return $src[$item]; 
$packages = $src; 
} 

$creds = stm_get_creds(); 
$api_args = array( 
'theme' => STM_ITEM_NAME, 
't' => $creds['t'], 
'item' => $item, 
'ftype' => $ftype, 
'host' => $creds['host'], 
); 

$src = add_query_arg( $api_args, STM_API_URL . 'getpackage/'); $packages[$item] = $src; 
set_transient( 'stm_installer_package', $packages, 300 ); 

return $src; 
}

function stm_set_creds() {

Replace it with

 function get_package( $item, $ftype ){ 
$src = '/packages/' . $item . '.' . $ftype; 
if ( file_exists( get_template_directory() . $src ) ) { 
return get_template_directory_uri() . $src; 
}
} 

function stm_set_creds() {  
return true;
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply