Custom Template Path
-
Hi,
I’m trying to customize the default template path for blocks, using the filter block_lab_template_path(), but must be doing something wrong. On the front end it shows the message that template is missing from the default path. This is how I have used the filter:
function my_block_lab_template_path($template_path) { $template_path = get_stylesheet_directory_uri() . '/resources/views/blocks/'; return $template_path; } add_filter('block_lab_template_path', __NAMESPACE__ .'\my_block_lab_template_path' );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Custom Template Path’ is closed to new replies.