OliverEggertsen Posted July 9, 2013 Share Posted July 9, 2013 Hi. I have tried searching for this issue for a while but some of the solutions just messed up on my site so i will try to provide a link to my site to see if i could get some help :-) I already have the footer in full width but i would also like the header and top horizontal menu to be full width (while the cart, topmenu buttons, logo etc keep their position). This is my site: Smykker og ure I am using version 1.5.3.1 Hope you experts can help :-) Thanks in advance Link to comment Share on other sites More sharing options...
PSfever.com Posted July 9, 2013 Share Posted July 9, 2013 (edited) Hi, this is a bit more complicated than the footer, as making full width header influences the body of the page. From my experience, I solved this problem my closing the div tag of page sooner and then making new div containing all the columns + I had to write few CSS lines of code as well to position them properly. Edited July 9, 2013 by PSfever.com (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 in this case you have to edit the header.tpl file remove the header <div> from the <div id="page"> then remove grid_9 value after that it will be neessary to change also width of the top horizontal menu (CSS styles) just change the width:980px; to width:100%; 2 Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 effect: 1 Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 Thanks a lot, it worked :-) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 you're welcome thread marked as [solved] regards Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 (edited) you're welcome thread marked as [solved] regards Now i am having trouble positioning the menu buttons more to the right so they fit the slider image below like before. how do i do this? Edited July 9, 2013 by OliverEggertsen (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 hmm what you mean by that: "more to the left" ? buttons are aligned to the left now: Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 hmm what you mean by that: "more to the left" ? buttons are aligned to the left now: Sorry, i meant to the right :-S Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 in this case you have to edit top menu .tpl file here is a code: {if $MENU != ''} <!-- Menu --> <div class="sf-contener clearfix"> <div style="background:#B7CEEC; display:block; width:100%"> <div style="width:980px; margin:auto;"> <ul class="sf-menu clearfix"> {$MENU} {if $MENU_SEARCH} <li class="sf-search noBack" style="float:right"> <form id="searchbox" action="{$link->getPageLink('search')}" method="get"> <p> <input type="hidden" name="controller" value="search" /> <input type="hidden" value="position" name="orderby"/> <input type="hidden" value="desc" name="orderway"/> <input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'htmlall':'UTF-8'}{/if}" /> </p> </form> </li> {/if} </ul> </div> </div> </div> <div class="sf-right"> </div> <!--/ Menu --> {/if} can you try with this one? hope it will work (remember about backup) Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 in this case you have to edit top menu .tpl file Sorry, it didn't work. It came to look like this: Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 ok, sorry can you restore the original file?, i will try once again Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 ok, sorry can you restore the original file?, i will try once again File restored. Thanks :-) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 new code: {if $MENU != ''} <!-- Menu --> <div class="sf-contener clearfix"> <div style="display: block; width: 100%; background: #B7CEEC; clear: both; overflow: hidden; "> <ul class="sf-menu clearfix"> {$MENU} {if $MENU_SEARCH} <li class="sf-search noBack" style="float:right"> <form id="searchbox" action="{$link->getPageLink('search')}" method="get"> <p> <input type="hidden" name="controller" value="search" /> <input type="hidden" value="position" name="orderby"/> <input type="hidden" value="desc" name="orderway"/> <input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'htmlall':'UTF-8'}{/if}" /> </p> </form> </li> {/if} </ul> </div> </div> <div class="sf-right"> </div> <!--/ Menu --> {/if} then edit css styles: /modules/blocktopmenu/css/superfish-modified.css remove the: margin: 10px 0; from: and add margin:auto; change the width to 980px; .sf-menu { margin: auto; padding: 0; width: 980px; background: #B7CEEC; } the same file (line ~70) remove the float: left; and margin-bottom: 1em; from: .sf-menu { font-size: 12px; } effect: Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 Weird, i don't get the same effect as you. I got the same effect as before.. :-S Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 maybe it's because that you've got different template file of the module, can you attach your original file? then restore it once again (sorry to bother you) Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 I appreciate your help a lot :-) This is my .tpl file: {if $MENU != ''} </div> <!-- Menu --> <div class="sf-contener clearfix"> <ul class="sf-menu clearfix" style="width:100%;"> {$MENU} {if $MENU_SEARCH} <li class="sf-search noBack" style="float:right"> <form id="searchbox" action="{$link->getPageLink('search')}" method="get"> <p> <input type="hidden" name="controller" value="search" /> <input type="hidden" value="position" name="orderby"/> <input type="hidden" value="desc" name="orderway"/> <input type="text" name="search_query" value="{if isset($smarty.get.search_query)}{$smarty.get.search_query|escape:'htmlall':'UTF-8'}{/if}" /> </p> </form> </li> {/if} </ul> <div class="sf-right"> </div> <!--/ Menu --> {/if} Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 that's right you've got additional: </div> right after the {if $MENU != ''} can you try to add the same </div> to the code i suggested you before? Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 Thanks, it worked fine! :-) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 Finally! Im glad that it work as you expect now Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 that's right you've got additional: </div> right after the {if $MENU != ''} can you try to add the same </div> to the code i suggested you before? Oops, new problem :-S Now the dropdowns in the menu don't work Finally! Im glad that it work as you expect now Oops, new problem :-S Now the dropdowns in the menu don't work Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 oh my God, its my fault, remove the overflow: hidden; from the code that i suggested to use: <div style="display: block; width: 100%; background: #B7CEEC; clear: both; overflow: hidden; "> (from tpl file) 1 Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 Thanks! :-) Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 9, 2013 Author Share Posted July 9, 2013 Finally! Im glad that it work as you expect now When i try putting an item in the cart and then hover over the right corner cart block the dropdown is to the far right. How can i move to be just below the cart block? I tried changing giving the css position:relative; and right:140px; but it created some grey thing to the right of the dropdown like this: What shall i do? Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 go to the modules > positions search for displayTop move the block cart module right after the block user informatation then edit the css file: /modules/blockcart/blockcart.css #header #cart_block { z-index: 10; display: none; position: absolute; right: 0; top: 48px; height: auto; width: 200px; box-shadow: 0 1px 0 #C6C6C6; background: #eee; } i changed the top: 65px to top: 48px; Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 10, 2013 Author Share Posted July 10, 2013 Thanks! :-) Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2013 Share Posted July 10, 2013 checked it and still there is blank space: it is related to the css styles, have you changed the top:65px value? Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 10, 2013 Author Share Posted July 10, 2013 Not in my browser :-S Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2013 Share Posted July 10, 2013 maybe its because i use chrome / win OS btw. i check it while a go: now it looks well Link to comment Share on other sites More sharing options...
OliverEggertsen Posted July 10, 2013 Author Share Posted July 10, 2013 That's good. Thank you so much for your help :-) Link to comment Share on other sites More sharing options...
RudraTandav Posted July 17, 2013 Share Posted July 17, 2013 i was looking for the same effect in ps 1.5.4.1 i done all the changes show my you but fialed to get the effect plz help Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 i was looking for the same effect in ps 1.5.4.1 i done all the changes show my you but fialed to get the effect plz help check this thread: http://www.prestashop.com/forums/topic/242732-1541-default-theme-menu-moved-to-right-how-to-fix/ Link to comment Share on other sites More sharing options...
RudraTandav Posted July 17, 2013 Share Posted July 17, 2013 (edited) i have the same code which you mention in that thread my top menu move to right after i done below changes i also remove the grid_9 value im looking for the same effect tht this website have http://olivereggertsen.dk/ plz help Edited July 17, 2013 by anilm661 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 sorry but it's hard to say what you have to change without an access to the store. it's a css / html thing and it is hard to debug it without access Link to comment Share on other sites More sharing options...
RudraTandav Posted July 17, 2013 Share Posted July 17, 2013 (edited) im doing it on localhost i dnt have any live site so .... well thnks let me figure it out Edited July 17, 2013 by anilm661 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 maybe you can share your IP ? then i will be able to check it (but in this case you can't be behind the NAT / firewall) Link to comment Share on other sites More sharing options...
RudraTandav Posted July 17, 2013 Share Posted July 17, 2013 (edited) actualy i dnt have a seprate ip thts the problem my question is very simple i repeat it i have ps 1.5.4.1 now i want a full strecth topmenu bar 100% is it possible & i knw its possible but how im trying to figure it how lets see plz reply if you can help Edited July 17, 2013 by anilm661 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 17, 2013 Share Posted July 17, 2013 so in this topic you've got solution, doesn't work, it mean that something is wrong in code. i can't say more, because i can't test it. Link to comment Share on other sites More sharing options...
jcar98 Posted July 22, 2013 Share Posted July 22, 2013 Hello everyone, I've tried to follow the tutorial unsuccessfully. The header I'm trying to make is as follows: 1. Header at 100% width. 2. Menu, logo and cart should be centered at 980px; my site is at: bit.ly/133st5W This is what I did following this tutorial 1. Removed the header <div> from the <div id="page"> 2. Removed grid_9 from <div id="header" class="alpha omega"> & <div id="header_right" class="omega"> 3. Tried setting width from 980px to 100% in .sf-menu but the menu was just as small as the three menu items width that it contains. Appreciate your help on this issue. Link to comment Share on other sites More sharing options...
F10X Posted August 14, 2013 Share Posted August 14, 2013 Hi Vekia, I followed your tips and succeeded in having a full lenght header but to have a full lenght top menu I had to add "</div>" (as you suggested in this post) even if there wasn't any "</div>" in the original blocktopmenu.tpl file. This gave me the wanted effect but with a problem: the background color of the top menu is different in the additional parts. Moreover, I modified the height of the header in global.css in order to use the entire background image (I'd like to have a three bands design, something like this: http://www.apicolturalequerce.it/) but the menu stays in the center while I want it to stay at the bottom of the header. How can I fix it? Here is my site so you can debug it: http://rodolforascioni.it/lome/index.php. Other problems: 1) as you can see the "search" ("cerca" in italian) module overlay the cart module; 2) dropdowns (see "prodotti") go under the slideshow and become invisible. Can you help me? Thanks a lot, Marco Link to comment Share on other sites More sharing options...
vekia Posted August 14, 2013 Share Posted August 14, 2013 hello the background color of the top menu is different in the additional parts. it's because you used background color code from the example above. you need to use own color. but the menu stays in the center while I want it to stay at the bottom of the header. to the sf-contener add margin-top: 403px; style Link to comment Share on other sites More sharing options...
kochanie Posted August 18, 2013 Share Posted August 18, 2013 Hi dear vekia, what you mean this then remove grid_9 value Because I have the same problem like OliverEggertsen and I cant to solve it by this way. Thank you in advance. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 Hi dear vekia, what you mean this Because I have the same problem like OliverEggertsen and I cant to solve it by this way. Thank you in advance. as far as i remember, this solution works for OliverEggertsen. YOu have to change it in the header.tpl file located in your theme directory. Link to comment Share on other sites More sharing options...
kochanie Posted August 19, 2013 Share Posted August 19, 2013 Dear Vekia, I found your explain at another topic and now my site look this way http://bit.ly/1ajnSFX Please, find my faults and help to move logo and cart etc to the center. Thank you in advance. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 so you don't want full width header? (im asking because you said "move logo and cart etc to the center") Link to comment Share on other sites More sharing options...
kochanie Posted August 19, 2013 Share Posted August 19, 2013 Yes, I want full widht menu only. Link to comment Share on other sites More sharing options...
vekia Posted August 19, 2013 Share Posted August 19, 2013 so it will be a bit more complicated in this case. you will need to rebuild the template file, modules .tpl fles also. you will have to create a separate div to the menu with width:100% and other one div for modules attached to top section (without top menu) with width:980px; and margin:auto; Link to comment Share on other sites More sharing options...
kochanie Posted August 19, 2013 Share Posted August 19, 2013 After some change I got the same effect like Oliver in post #7 and I have the same problem - I need to move logo and menu button to the right and search, cart to the left. I made the change in the blocktopmenu.tpl file but I dont got effect like at Oliver site. Could you offer to me another solution, please? Link to comment Share on other sites More sharing options...
PrestaShark Posted October 30, 2013 Share Posted October 30, 2013 Hi F10X, This is mine solution for 100% header and/or menu http://www.prestashop.com/forums/topic/281109-new-way-to-make-a-100-full-width-header-and-menu/ I hope this help! Link to comment Share on other sites More sharing options...
generalexperts Posted January 29, 2014 Share Posted January 29, 2014 Can anyone help me? I can't seem to get my header fixed and in the right place. When I've tried before it messed my whole site up. Using Prestashop 1.5.4.1 and Responsive theme. Thanks Link to comment Share on other sites More sharing options...
vekia Posted January 29, 2014 Share Posted January 29, 2014 hello so what you exactly want? fixed header? or full width header (like main case in this topic) im asking because you posted several messages in other topics related to this and ... im getting confused a bit Link to comment Share on other sites More sharing options...
technoschool Posted January 29, 2014 Share Posted January 29, 2014 good explanation.. Link to comment Share on other sites More sharing options...
generalexperts Posted January 29, 2014 Share Posted January 29, 2014 Vekia, Sorry I am just looking for a fixed header. I replied in the other forum for this. Sorry for the confusion. Link to comment Share on other sites More sharing options...
lilvivi Posted August 20, 2014 Share Posted August 20, 2014 So how do you get this working in version 1.6? there isnt any grid_9 to delete, and anyway I tried to place the code above id="page" but not without any result please help me out with this. Link to comment Share on other sites More sharing options...
totallighting.sk Posted April 23, 2015 Share Posted April 23, 2015 Hi Vekia, I`m using your modul blok html pro and would like to get full header responsive logo? Any idea how? Here is html code: <img src="http://totallighting.sk/img/cms/banner/banner_new.png" class="img-responsive" alt="TOTAL LIGHTING - Svietidlá a Osvetlenie" width="1100" height="224" style="display: block; margin-left: auto; margin-right: auto; padding-bottom: 5px; padding-top: 5px; border-top: 1px #cccccc solid; border-bottom: 1px #cccccc solid;" /> Header logo from module it`s not responsive... Link to comment Share on other sites More sharing options...
samsonv_05 Posted July 13, 2015 Share Posted July 13, 2015 Hello, WOuld you be able to tell me exactly how to do the same, but on 1.6.1.0? Thanks! Val Link to comment Share on other sites More sharing options...
maximilian8777 Posted August 11, 2016 Share Posted August 11, 2016 Hi, what is the better solution, only for the top horizontal menu, not header, but only menu full width, thanks :-) Link to comment Share on other sites More sharing options...
barros1 Posted August 24, 2017 Share Posted August 24, 2017 How to do in version 1.6 the same thing? Link to comment Share on other sites More sharing options...
Recommended Posts