As I said in short article description - In this free tutorial I want to show you how to create fixed header in Prestashop. The goal here is to make a fixed block with your shop logo, search bar, cart and user links (register, log in, log out). By "fixed" I mean that this block stays on top of the scree, whether you are scrolling window or not. If you want to have got shop with fast and easy in access navigation - this tutorial is exactly for you. You can check how fixed header looks like on video that I attached below:
How to create fixed header ?
Well, I will show you only the basic solution, but of course if you want - you can personalize it. Add own colors, backgrund, add 100% width etc. Without steps that I show below - it will be impossible to create fixed header. So, let's go ;)
First step: edit header.tpl file
Open the themes/your_theme/header.tpl file. What you need to do is add some css style parameters to the most important div: header. Just copy the code I pasted below, and use it in own header.tpl file.
change the line:
<div id="header" class="grid_9 alpha omega">
to the:
<div id="header" class="grid_9 alpha omega" style="position:fixed; background:#FFF;">
change the:
<div id="columns" class="grid_9 alpha omega clearfix">
to the:
<div id="columns" class="grid_9 alpha omega clearfix" style="Position:relative; top:150px;">
Save the file. Now open another one...
Second step: open the footer.tpl file
Go to the themes/your_theme/footer.pl. All you need to do in this file is change the:
<div id="footer" class="grid_9 alpha omega clearfix">
to the:
<div id="footer" class="grid_9 alpha omega clearfix" style="position:relative; top:150px;">
Save the file. Now you can refresh your website - because that's all :-)