Reputation: 2507
I need to implement html code inside a wordpress index.php page.How to do this?
index.php-Wordpress template
<?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.
* For example, it puts together the home page when no home.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Wp_Bootstrap
* @since Wp Bootstrap 1.0
*/
// Gets header.php
get_header();
get_footer();
?>
Html
<div class="container">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
Upvotes: 0
Views: 1998
Reputation: 2513
It is pretty easy.
// Gets header.php
get_header();
//Start of code as part of answer
?>
<div class="container">
<p>Your text here</p>
</div>
<?php
//end of code as part of answer
get_footer();
Upvotes: 1