Edit File: page-home.php
<?php /** * Template Name: Homepage Template * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/ * * @package orun */ $options = get_option('orun_opt'); // Options get_header(); ?> <style> <?php if ( $options['orun-opt-sidebar-main-no'] == true ) { echo '#orun-home-main { -ms-flex: 0 0 66.6667%; flex: 0 0 100%; width: 100%; max-width: 100%; }'; } if ( $options['orun-opt-navbar-excerpt'] == true ) { echo '.orun-pm-excerpt { display: none; }'; } if ( $options['orun-opt-navbar-read'] == true ) { echo '.meta-end { display: none; }'; } if ( $options['orun-opt-meta-onoff'] == true ) { echo '.meta-start { display: none; }'; } if ( $options['orun-opt-meta-onoff'] == true && $options['orun-opt-navbar-read'] == true ) { echo '.orun-pm-meta { display: none; }'; } ?> </style> <?php index_schema(); ?> <main id="primary" class="site-main"> <?php if (is_active_sidebar('grid-top-fw-widgets')) { ?> <div class="orun-fw-widgets"> <div class="container"> <?php dynamic_sidebar('grid-top-fw-widgets'); ?> </div> </div> <?php } ?> <?php if (is_active_sidebar('grid-widgets')) { ?> <div id="orun-grid-area"> <?php dynamic_sidebar('grid-widgets'); ?> </div> <?php } ?> <?php if (is_active_sidebar('grid-bottom-fw-widgets')) { ?> <div class="orun-fw-widgets"> <div class="container"> <?php dynamic_sidebar('grid-bottom-fw-widgets'); ?> </div> </div> <?php } ?> <div id="orun-home-area" class="container"> <div class="row"> <div id="orun-home-main"> <?php if( is_active_sidebar('home-widgets') ) { dynamic_sidebar('home-widgets'); } ?> </div> <?php if ($options['orun-opt-sidebar-main-no'] == false) { get_sidebar(); } ?> </div> </div> </main><!-- #main --> <?php get_footer();