Home Forums WoodMart support forum Blog page template

Blog page template

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #204822

    Timka
    Participant

    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?

    #204857

    Hello,

    You can customize the blog in this file: woodmart\inc\template-tags.php

    You need to find the function: woodmart_main_loop()

    Best Regards

Viewing 2 posts - 1 through 2 (of 2 total)