To overwrite the templates, you can use a hook. This allows you, for example, to redirect the previous default template to your own template.
This function is called for products. You can use it to overwrite the template based on conditions, for example.
function atkp_modifiy_template_callback( $template ) {
//Vorlage hier übersteuern:
//$template = 'wide';
return $template ;
}
add_filter( 'atkp_modify_template', 'atkp_modifiy_template_callback');
This function is called for lists, products and search forms. You can use it to overwrite the template based on conditions, for example.
function atkp_modify_template_list_callback( $template, $id, $content ) {
return $template ;
}
add_filter( 'atkp_modify_template_list', 'atkp_modify_template_list_callback', 10, 3);
This function is called for lists. You can use it to overwrite the template based on conditions, for example.
function atkp_modify_template_product_callback( $template, $id, $content ) {
return $template ;
}
add_filter( 'atkp_modify_template_product', 'atkp_modify_template_product_callback', 10, 3);
You are currently viewing a placeholder content from Facebook. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from hCaptcha to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from reCAPTCHA to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou need to load content from Turnstile to submit the form. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from Instagram. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More InformationYou are currently viewing a placeholder content from X. To access the actual content, click the button below. Please note that doing so will share data with third-party providers.
More Information