Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It would be easier to write a seperate header file... if you open <code>catalog/controller/common/home.php</code> you will find the following code</p> <pre><code> $this-&gt;children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); </code></pre> <p>you could change this to </p> <pre><code> $this-&gt;children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/headerhome' ); </code></pre> <p>and then open:</p> <pre><code>catalog/view/theme/default/common/home.tpl </code></pre> <p>and find the following line:</p> <pre><code>&lt;?php echo $header; ?&gt; </code></pre> <p>and change it to:</p> <pre><code>&lt;?php echo $headerhome; ?&gt; </code></pre> <p>and then copy:</p> <p><code>catalog/controller/common/header.php</code></p> <p>and rename it</p> <p><code>headerhome.php</code></p> <p>and then open </p> <p><code>catalog/controller/common/headerhome.php</code> </p> <p>and find the following line</p> <pre><code>class ControllerCommonHeader extends Controller { </code></pre> <p>and change to:</p> <pre><code>class ControllerCommonHeaderhome extends Controller { </code></pre> <p>then find:</p> <pre><code>$this-&gt;language-&gt;load('common/header'); </code></pre> <p>and change to:</p> <pre><code>$this-&gt;language-&gt;load('common/header'); </code></pre> <p>then find the following code:</p> <pre><code>if (file_exists(DIR_TEMPLATE . $this-&gt;config-&gt;get('config_template') . '/template/common/header.tpl')) { $this-&gt;template = $this-&gt;config-&gt;get('config_template') . '/template/common/header.tpl'; } else { $this-&gt;template = 'default/template/common/header.tpl'; } </code></pre> <p>and change it to:</p> <pre><code> if (file_exists(DIR_TEMPLATE . $this-&gt;config-&gt;get('config_template') . '/template/common/headerhome.tpl')) { $this-&gt;template = $this-&gt;config-&gt;get('config_template') . '/template/common/headerhome.tpl'; } else { $this-&gt;template = 'default/template/common/headerhome.tpl'; } </code></pre> <p>and then copy </p> <pre><code>catalog/view/theme/default/common/header.tpl </code></pre> <p>and rename to:</p> <pre><code>catalog/view/theme/default/common/headerhome.tpl </code></pre> <p>then copy:</p> <pre><code>catalog/language/english/common/header.php </code></pre> <p>and rename to:</p> <pre><code>catalog/language/english/common/headerhome.php </code></pre> <p>you can then edit the following file to reflect the style changes that you want:</p> <p><code>catalog/view/theme/default/common/headerhome.tpl</code> </p> <p>you can then edit the following file to reflect the language changes that you want:</p> <p><code>catalog/language/english/common/headerhome.php</code> </p> <p>This means that the home page will show headerhome and all other pages will show the standard header, which if you are only going to have two pages like you said earlier this solves your problem...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload