File Editor
Directories:
.. (Back)
assets
customizer
framework
frontpage
languages
lib
template_parts
Files:
404.php
author.php
category.php
comments.php
footer.php
functions.php
header.php
index.php
page.php
readme.txt
search.php
sidebar.php
single.php
style.css
style_core.css
tag.php
woocommerce.php
Create New File
Create
Edit File: index.php
<?php /** * The index page of Optimizer * * Displays the home page elements. * * @package Optimizer * * @since Optimizer 1.0 */ global $optimizer; ?> <?php get_header(); ?> <?php if ( is_front_page() ) { ?> <div class="home_wrap layer_wrapper"> <div class="fixed_wrap fixindex"> <!--FRONTPAGE WIDGET AREA--> <?php if ( is_active_sidebar( 'front_sidebar' ) ) : ?> <div id="frontsidebar" class="frontpage_sidebar"> <?php dynamic_sidebar( 'front_sidebar' ); ?> </div> <?php endif; ?> </div> </div><!--layer_wrapper class END--> <?php if ( home_url() == 'https://wp-themes.com/' || home_url() == 'https://wp-themes.com' ) { ?> <?php get_template_part('template_parts/theme','demo'); ?> <?php } ?> <?php if ( !is_active_sidebar( 'front_sidebar' ) ) : ?> <div class="fixed_site layer_wrapper <?php if ( home_url() == 'https://wp-themes.com/' || home_url() == 'https://wp-themes.com' ) { echo 'wpdemosite';} ?>"> <div class="fixed_wrap fixindex dummypost"> <?php if(is_customize_preview()){ ?> <div class="replace_widget"><?php _e('You can Replace this Posts Section with Optimizer Widgets.','optimizer'); ?> <a class="add_widget_home"><?php _e('Add Widgets','optimizer'); ?></a></div> <?php } ?> <?php get_template_part('template_parts/post','layout4'); ?> </div> </div> <?php endif; ?> <?php }else{ ?> <div class="fixed_site"> <div class="fixed_wrap fixindex"> <?php get_template_part('template_parts/post','layout4'); ?> </div> </div> <?php } //is_front_page ENDS ?> <?php get_footer(); ?>
Save Changes
Rename File
Rename