Hi,
I have worked quite a lot with Woodmart theme, and it usually goes really smooth.
Currently I’m doing the project that requires to create a custom design for blog posts archives and CPT archives. I have done this successfully by placing my custom archive.php inside the Child theme, so when I go to blog category Archive, i.e. https://www.mywebsite.com/category/my-category/ it works perfectly. I have also successfully used “taxonomy_template” hook to override CPT Archive page template to create different design variations for my taxonomies.
However I got stucked with a website Blog page – https://www.mywebsite.com/blog/. It only displays a default Woodmart stylings, that I can select in Theme settings >> Blog >> Blog Design.
I have tried some hooks like:
add_filter( 'taxonomy_template', 'my_custom_archive_template' );
add_filter( 'archive_template', 'my_custom_archive_template' );
function my_custom_archive_template($template) {
if ( is_home() ) {
$template = locate_template('archive.php');
}
return $template;
}
But this method does not help to override a Blog page template.
Could you please give me some suggestions how can I do that properly?