- every
// page on the site showed the identical "GT Max Motors" title. Adding
// this lets WordPress core (and Rank Math's own title settings) generate
// a correct, unique title per page once the hardcoded lines are removed
// from each template.
add_action('after_setup_theme', function () {
add_theme_support('title-tag');
});
function mytheme_enqueue_styles()
{
wp_enqueue_style('mytheme-style', get_stylesheet_uri());
}
add_action('wp_enqueue_scripts', 'mytheme_enqueue_styles');
function mytheme_register_menus() {
register_nav_menus(array(
'header_menu' => __('Header Menu', 'mytheme'),
'footer_menu' => __('Footer Menu', 'mytheme'),
));
}
add_action('init', 'mytheme_register_menus');
function gtmax_enqueue_styles() {
wp_enqueue_style(
'gtmax-style',
get_template_directory_uri() . '/assets/css/style.css',
array(),
filemtime(get_template_directory() . '/assets/css/style.css')
);
}
add_action('wp_enqueue_scripts', 'gtmax_enqueue_styles');
function gtmax_enqueue_scripts() {
wp_enqueue_script('footer-js', get_template_directory_uri() . '/assets/js/footer.js', array(), null, true);
}
add_action('wp_enqueue_scripts', 'gtmax_enqueue_scripts');
add_filter( 'nav_menu_link_attributes', function( $atts, $item, $args ) {
// For example, force all links in "Header" menu to open in a new tab
if ( $item->type === 'custom' ) {
if(str_contains(strtoupper($item->title),'SHOP NOW')){
$atts['target'] = '_blank';
if ( isset( $atts['class'] ) ) {
$atts['class'] .= ' show_now_btn';
} else {
$atts['class'] = 'show_now_btn';
}
}
}
return $atts;
}, 10, 3 );
add_filter( 'nav_menu_item_title', function( $title, $item, $args, $depth ) {
if ( $item->type === 'custom' && stripos( $item->title, 'SHOP NOW' ) !== false ) {
// Add bag icon before the text
$title = '' . $title;
}
return $title;
}, 10, 4 );
add_action('add_meta_boxes', function() {
add_meta_box(
'custom_post_template_box',
'Post Layout Template',
'render_custom_post_template_box',
'post',
'side',
'default'
);
});
// start post php files as categories selection
function render_custom_post_template_box($post) {
$selected_template = get_post_meta($post->ID, '_custom_post_template', true);
$templates_dir = get_stylesheet_directory() . '/posts/';
$files = glob($templates_dir . '*.php');
echo '';
}
add_action('save_post', function($post_id) {
if (isset($_POST['custom_post_template'])) {
update_post_meta($post_id, '_custom_post_template', sanitize_text_field($_POST['custom_post_template']));
}
});
add_filter('single_template', function($template) {
global $post;
$custom_template = get_post_meta($post->ID, '_custom_post_template', true);
if ($custom_template) {
$path = get_stylesheet_directory() . '/posts/' . $custom_template;
if (file_exists($path)) {
return $path;
}
}
return $template;
});
// end post php files as categories selection
function gtmax_breadcrumbs() {
if (is_front_page()) return;
echo '';
}
// add the insurance.js to insurance-page
function gtmax_enqueue_insurance_assets() {
$is_insurance_page = is_page_template('page-Insurance.php')
|| is_page_template('page-insurance.php')
|| is_page('insurance');
if (!$is_insurance_page) {
return;
}
wp_enqueue_script(
'sweetalert2',
'https://cdn.jsdelivr.net/npm/sweetalert2@11',
[],
null,
true
);
wp_enqueue_script(
'gtmax-insurance',
get_template_directory_uri() . '/assets/js/insurance.js',
['jquery', 'sweetalert2'],
filemtime(get_template_directory() . '/assets/js/insurance.js'),
true
);
wp_localize_script('gtmax-insurance', 'GTMAX_CONFIG', [
'apiUrl' => 'https://gtmaxmanagement.gtmax.com.my/api/insurance_registration',
'token' => 'Bearer 5c63174c9bbe98178b95bb8b99d9e8b4b8ea4821c4c06596620652ddd5eefdbf1fd441b0de2ce1b8',
'lang' => get_locale(),
]);
}
add_action('wp_enqueue_scripts', 'gtmax_enqueue_insurance_assets');
GT Max Motors
Who We Are
Founded in 1993, GT-MAX Motors (M) Sdn Bhd began as a small motorcycle repair shop in Shah Alam and has since grown into one of Malaysia’s leading motorcycle dealers.
For over three decades, we’ve been empowering riders across the nation with reliable motorcycles, trusted service, and a passion for two-wheeled freedom.
Years of trusted experience
17 Branches
Across Selangor and Klang Valley
250,000+
Riders served
Our Businesses
Motorcycle Sales & Trading
New & pre-owned motorcycle sales, trade-ins, and promotions
Spare Parts & Accessories
Genuine spare parts, performance upgrades, and lifestyle gear.
Repair & Maintenance
Professional repairs, maintenance, and after-sales care.
Financing & Credit Services
Flexible ownership and financing plans for every rider.
Our Milestones
1990s — The Beginning
1993 – Founded in Sri Muda, Shah Alam GT Max Motors was established in Sri Muda, Shah Alam — marking the beginning of our journey in Malaysia’s motorcycle industry.
2000s — Excellence Recognized
2008 – Awarded Modenas State Top Dealer (Selangor No.1) for five consecutive years.
2010s — Quality & Network Expansion
2017 – Became Malaysia’s First Yamaha Star Centre, setting a new benchmark in service quality. And achieved ISO 9001:2015 Certification for quality management.
2018 – Established Yamaha Quality Service (YQS) – Subang Branch, enhancing after-sales excellence.
2020s — Lifestyle & Innovation
2021 – Introduced GT Max Hire Purchase Solutions, offering flexible financing options.
2022 – Opened Kapar HQ & Spare Parts Warehouse and launched Yamaha Lifestyle & Genblu Café at Sri Muda.
2024 – Introduced GT Max Lounge – Bukit Beruntung, blending lifestyle and motor experience.
🏁 The Journey Continues
From a single outlet in 1993, GT Max Motors has grown into one of Malaysia’s leading motorcycle dealership networks.
With over 17 branches and service centres across Selangor and Klang Valley — continuing to drive innovation, customer satisfaction, and lifestyle excellence.
Our Vision
To become Malaysia’s most trusted and innovative motorcycle brand, connecting every rider to the perfect ride and service experience.
Our Mission
To make motorcycle ownership simple, accessible, and enjoyable — through innovation, integrity, and exceptional service.
Our Philosophy
1C5S
1C
CUSTOMER
Build Up Customer Loyalty through engage activities
1S
SALES
Increase motorcycle sales. And Build up strong shop branding through motorsports activies.
2S
SERVICES
Gain customer trues through mechanics upskilling and excellent after sales support.
3S
SPARE PART
Build up YGP and Yamalube branding to boost up sales.
4S
SOCIETY
Contribute back to society and increase brand awareness.