Help!!!!!! Index.php missing after adding a new widget area

Support forum dedicated to GavickPro free and premium WordPress themes.
GK User
Sat Mar 29, 2014 8:38 pm
Hello there,

I am using Rockwall template.

I was just follow this post to create a new widget area:

http://www.gavick.com/documentation/wor ... ess-theme/

I saved my index.php and create a new one with the changes you suggested in the post, and also I modified the widgets.json and uploaded into Rockwell/gavern/config/en_US/file. After doing it via FTP, I discovered it was exactly the same than the one was already there, but now my homepage is completely gone:

http://www.rocksinsubtitulos.co.uk/livingroom/

Also I don´t see any widget areas in my Wordpress page, so I can´t add anything to the homepage.

What can I do? What are the possibles solutions? Install again Wordpress or the template???

Here's my index.php now, maybe something there is missing:

<?php

/**
* GavernWP main template file
*
* This file is loaded only when user openes the site using the template
*
* @package WordPress
* @subpackage GavernWP
* @since GavernWP 1.0
**/

global $tpl;

gk_load('header');
gk_load('before');

?>

<?php if(get_option($tpl->name . '_template_homepage_mainbody', 'N') == 'N') : ?>
<?php do_action('gavernwp_before_mainbody'); ?>

<?php if ( have_posts() ) : ?>
<section id="gk-mainbody">
<?php do_action('gavernwp_before_loop'); ?>

<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>

<?php gk_content_nav(); ?>

<?php do_action('gavernwp_after_loop'); ?>
</section>
<?php else : ?>
<section id="gk-mainbody">
<article id="post-0" class="post no-results not-found">
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Nothing Found', GKTPLNAME ); ?></h1>
</header>

<div class="entry-content">
<p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', GKTPLNAME ); ?></p>
<?php get_search_form(); ?>
</div>
</article>
</section>
<?php endif; ?>

<?php do_action('gavernwp_after_mainbody'); ?>
<?php else: ?>
<?php if(gk_is_active_sidebar('mainbody')) : ?>
<section id="gk-mainbody">
<?php gk_dynamic_sidebar('mainbody'); ?>
</section>
<?php endif; ?>
<?php endif; ?>
<?php

gk_load('after');
gk_load('footer');

/* EOF */
User avatar
Fresh Boarder

GK User
Mon Mar 31, 2014 8:30 am
Hi,

I can't see your website - password is required. You should edit your existing index.php and add mentioned code from the article, not replace all index.php file. Now you should remove your index.php file and copy it from the theme package via FTP. Before any changes in Theme files, remember about the backup of all of your files and databse.
User avatar
Moderator


cron