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;

Leave a Reply

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.
MONTHLY MEMBERSHIP $29.99 $9.99
5 YEARS MEMBERSHIP $499.99 $109.99
10 Days 22 Hours 4 Minutes 7 Seconds
HURRY UP!