My theme is on [ Soft Rejected ] and says this:
Reason: index.php should be reserved for default blogroll and if there is no static page being set as front page, it should display the blogroll on homepage. You can use a custom page template for homepage.
I dont really understand because I always have done that file “index.php” in this way and put home.php as homepage.
if someone could comment me about how I can resolve this problem would. I appreciate your help.
<?php wp_link_pages( ); ?> <div id="post-<?php the_ID(); ?>" post_class="">> <?php comment_form(); ?> <?php add_theme_support( 'custom-background'); ?> <?php add_theme_support( 'custom-header' ); add_theme_support( 'automatic-feed-links' ); ?> <?php language_attributes(); ?> <?php the_tags() ?> <?php dynamic_sidebar( ); ?> <?php body_class( ); ?></div>
As the reviewer said – and part of the WordPress submission guidelines and generally fair policy – you should not use index.php to enforce a homepage template on your users. Think of index.php as being the mother of all templates, the backbone in the skeleton of WordPress. You overwrite it, nothing functions properly for a user that won’t care too much of your fancy schmancy homepage template. Without page.php, single.php, archives, categories etc, templates defined, all those queries revert to index.php for display and encounter… a homepage layout for every page.
If you really want to enforce a preferred look on the homepage in your theme, use the proper template name in the hierarchy recommended by WordPress Codex: front-page.php
front-page.php will always take precedence over index.php in terms of site homepage display (not blogroll) and will not affect/interfere with other pages requesting index.php for displaying proper information structure.
Thanks kailoon, just trying to help out.
Thank you very much dear Alex for your help, I will review these documents and then well you commented as I was, I think there is the solution.
thank you very much for your help