Hi George,
It does comply to Wordpress standard, but you probably expect to see it in a particular location especially it’s been like that on other themes.
Please check this reference for customization
https://theme.co/apex/forum/t/customizations-best-practices/205,
https://theme.co/apex/forum/t/how-to-upload-xtheme-to-child-theme/43246/2,
Our theme uses x_get_view
which is the same as Wordpress standard get_template_part
and there is no rule to where should the template parts be placed. In our theme, they are placed within /framework/views/
. With theme with many features, we divided it to multiple parts just like other rich-featured themes for easy management and customization. For standard or minimal theme like with less feature, you may only see them coded in single template including the get_header()
and get_footer()
, but it doesn’t mean it should be the same on all themes.
In our theme, get_header()
and get_footer()
are located in each stack folder, /framework/views/{STACK}/
. This is because in our theme, there are multiple stacks that act like a sub-theme/template to give more options for users and it’s something not available on a standard theme. And it can’t be done or at least not recommended on a single page template. An example, let’s say the active STACK is integrity (Theme Options > Stack)
/framework/views/integrity/wp-page.php
<?php
// =============================================================================
// VIEWS/INTEGRITY/WP-PAGE.PHP
// -----------------------------------------------------------------------------
// Single page output for Integrity.
// =============================================================================
get_header();
?>
<div class="x-container max width offset">
<div class="<?php x_main_content_class(); ?>" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php x_get_view( 'integrity', 'content', 'page' ); ?>
<?php x_get_view( 'global', '_comments-template' ); ?>
<?php endwhile; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
Still, we can’t provide custom development here in the forum and those functions aren’t missing.
Thanks!