Hey there, 10 years ago I’ve asked for some coding to use The Grid plugin to show my Blog Posts. Now 10 years later that plugin doesn’t exist and I’m trying to spin a new site without it but my Child-Theme still have many options on globals/_index.hp file:
<?php
// =============================================================================
// VIEWS/GLOBAL/_INDEX.PHP
// -----------------------------------------------------------------------------
// Includes the index output.
// =============================================================================
$stack = x_get_stack();
if ( is_home() ) :
$style = x_get_option( 'x_blog_style' );
$cols = x_get_option( 'x_blog_masonry_columns' );
$condition = is_home() && $style == 'masonry';
elseif ( is_archive() ) :
$style = x_get_option( 'x_archive_style' );
$cols = x_get_option( 'x_archive_masonry_columns' );
$condition = is_archive() && $style == 'masonry';
elseif ( is_search() ) :
$condition = false;
endif;
?>
<?php
if ( $condition ) {
x_get_view( 'global', '_script', 'isotope-index' );
?>
<div id="x-iso-container" class="x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>">
<?php
if (have_posts()) {
if (is_home() || is_front_page() || is_archive()) {
The_Grid('blog', true);
} else {
while (have_posts()) {
the_post();
if ( $stack != 'ethos' ) {
x_get_view( $stack, 'content', get_post_format() );
} else {
x_ethos_entry_cover( 'main-content' );
}
}
}
} else {
x_get_view( 'global', '_content-none' );
}
?>
</div>
<?php
} else {
if ( have_posts() ) {
if (is_home() || is_front_page() || is_archive()) {
//The_Grid('blog', true);
} else {
while (have_posts()) {
the_post();
x_get_view( $stack, 'content', get_post_format() );
}
}
} else {
x_get_view( 'global', '_content-none' );
}
}
if (!is_home() && !is_front_page() && !is_archive()) {
pagenavi();
}
?>
The question: should I remove just The Grid line, or can I delete the whole _index.php file?
I will not use The Grid on this site, and my coding level is too low to know if I should keep the other codes on that page, what to remove in order to get rid of The Grid for good.
I thank you very much if some of you can explain me what was written on that page, so to know what to remove or if I need to remove the whole page itself.
I’ll keep looking forward from you on that, thank you so much! Cheers!