Boilerplate theme – index.php not showing everything???
-
I’m a newbie to WordPress. I’ve activated Boilerplate (and have a successful child theme based on it.) Problem is, my index.php seems to not have as much in it as it should!
It basically runs the loop and calls the other pieces (header, footer, sidebar).
I can find the css — that’s not the problem.
The problem is: When I’m actually viewing the document online (well, through Wamp server), I say “view source” and it shows me things I’d like to edit/delete/add to. I just want to FIND these things in a file somewhere in the boilerplate theme. I expected these things would be in index.php but they’re not. I understand some of things are in the header, footer, sidebar, etc areas.
******************************************************************
What I think SHOULD be in index.php that isn’t in the one I downloaded:<!DOCTYPE html>
<!–[if lt IE 7 ]><html dir=”ltr” lang=”en-US” class=”no-js ie ie6 lte7 lte8 lte9″><![endif]–>
etc
<head>
<meta charset=”UTF-8″ />
title
<link rel=”stylesheet” href=”https://localhost/JP/wp-content/themes/boilerplate-child/style.css” />
class=”current_page_item”>Home<li class=”page_item page-item-2″>Sample Page</div>
</nav>
</div>
</body>
</html>
******************************************************************You get the idea. Now I will copy and paste what my index.php actually has. Where’s the beef??? Thanks in advance, I know this question has an obvious answer but it’s driving me nuts.
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
* Learn more: https://codex.www.ads-software.com/Template_Hierarchy
*
* @package WordPress
* @subpackage Boilerplate
* @since Boilerplate 1.0
*/get_header(); ?>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-index.php and that will be used instead.
*/
get_template_part( ‘loop’, ‘index’ );
?><?php get_sidebar(); ?>
<?php get_footer(); ?>
- The topic ‘Boilerplate theme – index.php not showing everything???’ is closed to new replies.