Hi!
We are using x-theme integrity.
We want to customize the archive template.
according to this post : https://theme.co/apex/forums/topic/archive-integrity-page-customize/
we duplicated x/index.php into x-child/, and renamed it “archive.php”.
Then put a big title saying “This is the archive page” but when we reload, we do not see the title. In order words, is not taking archive.php as the page template.
What are we doing wrong?
No staging site to test, only local.
This is the content of archive.php :
<?php
// =============================================================================
// INDEX.PHP
// -----------------------------------------------------------------------------
// Handles output of pages and posts if a more specific template file isn't
// present. Must be present for theme to function properly.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "wp-index.php," where you'll be able to find the
// appropriate output.
// =============================================================================
?>
<h1>this is the archive</h1>
<?php x_get_view( x_get_stack(), 'wp', 'index' ); ?>
Note: we duplicated some archives from x/ to /x-child, because we wanted to customize the structure of the single page, for example…
x-child/framework/views/global/_content-the-excerpt.php
x-child/framework/views/integrity/_content-post-header.php
x-child/framework/views/integrity/content.php
x-child/framework/views/integrity/wp-index.php
x-child/framework/views/integrity/wp-single.php
However, we don’t think this has something to do with the fact that archive.php is not loading.
Please help!