I'm trying to create a custom home page for a Wordpress site that's using the KnowledgePress theme. I'm not a PHP or Wordpress developer but I've spent hours researching this. No matter what I attempt, the page ends up taking on all kinds of theme elements from the site's custom theme.
I've tried creating an empty template, and then using this template from my custom page. Template:
<?php
/**
Template Name: Empty Template
*/
?>
<html>
<head>
<style type="text/css">
body { background-color: #cccccc; }
#page-content { width: 800px; margin: 20px auto; }
</style>
<title><?php wp_title( '|', true, 'right' ); bloginfo('url'); ?></title>
</head>
<body>
<div id="page-content">
</div>
</body>
</html>
The result still showed the page's content wrapped in the site theme.
I've tried creating a custom page-pagename.php file in the theme root, e.g. page-welcome.php:
<html>
<head>
</head>
<body>
<h1>MySite.com</h1>
</body>
</html>
The content is still wrapped in the site's look and feel. The template includes:
- base.php
- index.php
- page.php
if that's helpful. I have FTP access and am currently testing with a custom page but eventually would like this to work for the home page of the site. So far nothing I do breaks me out of the Wordpress theme, though.