?
Solved

How do I create Blank WordPress theme that shows NOTHING

Posted on 2012-03-15
3
Medium Priority
?
437 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
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…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

762 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