Zigma Posted December 28, 2008 Share Posted December 28, 2008 okey, say that I have made a new div box in the bottom of the page, and this divbox gonna contain the searchbar. To the question, how do I move the searchbar in to the divbox*?? What I mean is what code are I suppose to modify to make this happen.Thanks! Link to comment Share on other sites More sharing options...
metu Posted December 28, 2008 Share Posted December 28, 2008 there is an id named as "search_block_top" in default prestashop theme global.css. you can arrage it from it Link to comment Share on other sites More sharing options...
Zigma Posted December 28, 2008 Author Share Posted December 28, 2008 Thanks for your answere, anyway I dont think I can change the position on the searchbar in the global.css. What Im looking for in which file eg header.tpl do I call the search_block_top” . Link to comment Share on other sites More sharing options...
Dave Egerton Posted December 28, 2008 Share Posted December 28, 2008 ok, basically you index file calls header.tpl and footer.tpl in your themes. On these tpl files are the core main block divs fro header, left, centre, right and footerWhen you transplant a module in the backend admin it uses the hooks that have been registered {HOOK-LEFT} for example. If you look at blocksearch in modules you will see there is a default tpl and also another tpl for the blocksearch_header. So you can create a different template and style you CSS depending on the position you transplant these modules to I think. I say think because due to a lack of docs, that is as far as I have got myself.Of course, you could add your search directly into the template yourself and style the css, but you would not be able to then remove it via the backend modules. Sorry, that is as clear as I can be right now - You have to reaserch more but hopefully it will point you in right direction Link to comment Share on other sites More sharing options...
Zigma Posted December 29, 2008 Author Share Posted December 29, 2008 ...I have tried many things but without succeess. Isnt header.tpl (in the themes map) supposed to contain everything on the header? Hence changing the positions or the command linking to another of the searchbar should be in this header.tpl, am I right?Thanks in advance!The same with the currency I want move the whole currency to a different position but without sucess Link to comment Share on other sites More sharing options...
chirameto Posted December 30, 2008 Share Posted December 30, 2008 I haven't try this myself. But it worth a try for you. 1. Go to admin --> module --> position.2. *if you want* remove "quick search block" from header section. (This will remove search box from $HOOK_TOP in header.tpl)3. transplant "quick search block" to footer section. (This will add search box into $HOOK_FOOTER in footer.tpl)4. Change the style of search box in global.css as you wish. Link to comment Share on other sites More sharing options...
Zigma Posted December 30, 2008 Author Share Posted December 30, 2008 Thanks that helped a lot But just one more little question. Where is the left and right frame.tpl? Cant find them.Thanks everybody and a happy new year!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts