?
Solved

How do I create Blank WordPress theme that shows NOTHING

Posted on 2012-03-15
3
Medium Priority
?
445 Views
Last Modified: 2012-08-13
I want to create a WordPress theme or find a Theme that puts NOTHING on the page and allows me to insert my form and only show my form. Not Home button, not search bar, nothing except my inserted form. Is this possible? Thanks.
0
Comment
Question by:ZionTech1
  • 2
3 Comments
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 37726115
Yes, you would need to do it with a custom page template within any theme.  Here's a sample that I made using TwentyTen as the base:

<?php
/**
 * Template Name: One column, no sidebar no nav
 *
 * A custom page template without sidebar.
 *
 * The "Template Name:" bit above allows this to be selectable
 * from a dropdown menu on the edit page screen.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */

//get_header(); ?>

		<div id="container" class="one-column">
			<div id="content" role="main">

			<?php
			/* Run the loop to output the page.
			 * If you want to overload this in a child theme then include a file
			 * called loop-page.php and that will be used instead.
			 */
			 get_template_part( 'loop', 'page' );
			?>

			</div><!-- #content -->
		</div><!-- #container -->

<?php //get_footer(); ?>

Open in new window


All I did was comment out get_header() and get_footer() and remove any sidebars.  The result is a blank page that I can use within WordPress or I can add my own code to this template so it automatically displays.
0
 

Author Comment

by:ZionTech1
ID: 37726214
Sorry I am new to WordPress. So which template of the twenty ten did you edit this code in?
0
 

Author Comment

by:ZionTech1
ID: 37726552
Ok figured this out. Page Template. Worked perfect. Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This article shows the steps required to install WordPress on Azure. Web Apps, Mobile Apps, API Apps, or Functions, in Azure all these run in an App Service plan. WordPress is no exception and requires an App Service Plan and Database to install
The purpose of this video is to demonstrate how to set up an RSS Feed on a WordPress Website. This will be demonstrated using a Windows 8 PC. Feedburner will be used for this demonstration. Go to your WordPress login page. This will look like the…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses
Course of the Month16 days, 5 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question