• Hello,
    I use Corpo to build a website for one of my clients. I created a child-theme to adapt the css and templates. I noticed that archive.php does not take precedence over index.php as defined in the WordPress template hierarchy. When browsing a category index.php is used in stead of archive.php. I even think archive.php is not even used when browsing archives. Can you pse assist me further. Am I dooing something wrong or did I miss anything?

    Kind regards,
    Ger van de Lindt

    https://www.ads-software.com/support/theme/corpo

Viewing 1 replies (of 1 total)
  • I have the same problem.

    When I stop the Corpo Toolkit plugin, archive.php do work.

    I don’t know how to deal with the Corpo Toolkit plugin, so I guess that I have to find another slider plugin.

    —————————————

    I try to find the Corpo Toolkit folder with keyword “archive”.

    corpo_toolkit > portfolio.php delete line 124~151.

    add_filter( “single_template”, “corpo_get_single_portfolio_template” ) ;

    function corpo_get_archive_portfolio_template($archive_template) {
    global $post;

    if ($post->post_type == ‘corpo_portfolio’) {

    if ( file_exists( get_stylesheet_directory() . ‘/archive-corpo_portfolio.php’ ) )
    return get_stylesheet_directory() . ‘/archive-corpo_portfolio.php’;

    return $archive_template = dirname( __FILE__ ) . ‘/templates/archive-corpo_portfolio.php’;

    }
    }

    add_filter( “archive_template”, “corpo_get_archive_portfolio_template” ) ;

    function corpo_get_taxonomy_portfolio_template($taxonomy_template) {
    global $post;

    if ($post->post_type == ‘corpo_portfolio’) {

    if ( file_exists( get_stylesheet_directory() . ‘/taxonomy-corpo_services.php’ ) )
    return get_stylesheet_directory() . ‘/taxonomy-corpo_services.php’;

    return $taxonomy_template = dirname( __FILE__ ) . ‘/templates/taxonomy-corpo_services.php’;
    }
    }

    And delete archive-corpo_portfolio.php in templates folder, archive.php do work.

Viewing 1 replies (of 1 total)
  • The topic ‘archive.php does not take precedence over index.php’ is closed to new replies.