Showing results for 
Search instead for 
Did you mean: 

empty space on website when call .phtml with php code

empty space on website when call .phtml with php code



I want to use contact poppup from:


If i test popup form  from my magento theme it is working:


and if i put php code from a-page.php to empty .phtml in same directory shows empty space on web page when call static block from header or footer:




    Contact Form from HTML Form Guide

    This program is free software published under the

    terms of the GNU Lesser General Public License.


//1. First, include the file popup-contactform.php


//2. link to the style file contact.css


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "">

<html xmlns="" xml:lang="en-US" lang="en-US">


      <meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>

      <title>Contact us</title>

      <link rel="STYLESHEET" type="text/css" href="popup-contact.css">


<body onload="javascript&colon;fg_hideform('fg_formContainer','fg_backgroundpopup');">


This is an example page showing how to add the popup contact form to your website.

Click on the button below to open the popup.



<a href='javascript&colon;fg_popup_form("fg_formContainer","fg_form_InnerContainer","fg_backgroundpopup");'

><img border='0' src='contact-us-button.png' width='213' height='39' /></a>



//3. php include contactform-code.php at the end of the page







…I succesfuly call phtml file with static block (tested with some content):    

({{block type="core/template" template="/page/contact_pop.phtml"}})

And then call from footer or header this static block with:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('block_name')->toHtml();?>


Can anyone help?





Re: empty space on website when call .phtml with php code

Hello alchan,


We think you have an error on the page.


In order to display it you can paste the following code into index.php file in root directory of your site:


ini_set('display_errors', 1);


Plumrocket Team