Blank page type missing

Permalink
Hi, I added a page type, called it 'Blank' and chose the Blank Icon type, but the template still shows header, footer, etc. I need a page type that is completely blank. This way I can add a block without showing anything else...

Can anyone help me to create one?

Thanks!

ZillionProductions
 
hutman replied on at Permalink Reply
hutman
What version of C5 are you using? Do you have a custom theme or are you using the default installed one?
ZillionProductions replied on at Permalink Reply
ZillionProductions
Hey Hutman, I'm using Core Version - 5.7.5.9 and a custom Theme. Hope you can help!
hutman replied on at Permalink Reply
hutman
Did you create both a Page Type and Page Template?

The Page Type doesn't have much affect on the front end, so you will need to create a "Blank" Page Template and then in your theme you need to create a blank.php and then that will be used to display your page on the front end.
ZillionProductions replied on at Permalink Reply
ZillionProductions
Any chance you can guide me through this?
hutman replied on at Permalink Reply
hutman
You need to access your site via FTP and create a new file called blank.php and add whatever header/footer/areas you need in it.

Then you need to go to the Dashboard and add a Page Template called Blank with a handle of blank and then that will use your new file.
ZillionProductions replied on at Permalink Reply
ZillionProductions
Ok, so I thought I would copy the blank.php file from another website and then modify it.

The blank.php contains the following (see below). However I still see a navigation (top) and footer block in the blank template. I only need a main area. I thought I could remove lines 3 and 17, but that messes up the page completely.

What am I doing wrong?

Thanks:)

--

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$this->inc('elements/header.php'); ?>

<div class="<?php echo $c->getPageWrapperClass()?>">
<div class="master-container <?php if($collectiontype != "home"){echo "innerpage";} ?>">
<?php
$a = new Area('Main');
$a->enableGridContainer();
$a->display($c);
?>

</div>
</div>

<?php $this->inc('elements/footer.php'); ?>
hutman replied on at Permalink Reply
hutman
I would suggest copying the content from the header and footer files in place of the includes and then delete the stuff you don't want.
ZillionProductions replied on at Permalink Reply
ZillionProductions
Your solution worked, although I had help from SnefIT doing it, because I'm not all that technical ;)

Thanks for your help!
SnefIT replied on at Permalink Reply
SnefIT
I'll do it for you. No problem (as you know by now). You could have asked me directly, smarty pants ;)

SnefIT.