AmmyRao Posted March 5, 2014 Share Posted March 5, 2014 hello all, i m having a very small difficulty hope somebody will help me soon. Thanks Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 go to modules > positions search for dispalyTop modules list (not displayHeader!) and move quick search module below the block top menu module (just drag n drop it on list) 1 Link to comment Share on other sites More sharing options...
AmmyRao Posted March 5, 2014 Author Share Posted March 5, 2014 go to modules > positions search for dispalyTop modules list (not displayHeader!) and move quick search module below the block top menu module (just drag n drop it on list) thanks for the reply one more thing do i need to delete the quick search box from display header? Link to comment Share on other sites More sharing options...
AmmyRao Posted March 5, 2014 Author Share Posted March 5, 2014 go to modules > positions search for dispalyTop modules list (not displayHeader!) and move quick search module below the block top menu module (just drag n drop it on list) ok now i got the search box below menu now to customize the look of this quick search box what should i do? Link to comment Share on other sites More sharing options...
vekia Posted March 5, 2014 Share Posted March 5, 2014 no, don't touch module in displayHeader hook. it must be there. Now you have to modify module css styles #search_block_top #search_query_top { padding: 0 5px; height: 35px; width: 300px; border: 1px solid #666; border-right: 0 !important; color: #666; background: url(img/bg_search_input.png) repeat-x 0 0 #fff; float: left; font-size: 26px; } + #search_block_top .button { border: none; border-radius: 0; color: #fff; text-transform: uppercase; background: black; float: left; font-size: 20px; height: 37px; } in blocksearch.css effect 1 Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 no, don't touch module in displayHeader hook. it must be there. Now you have to modify module css styles #search_block_top #search_query_top { padding: 0 5px; height: 35px; width: 300px; border: 1px solid #666; border-right: 0 !important; color: #666; background: url(img/bg_search_input.png) repeat-x 0 0 #fff; float: left; font-size: 26px; } + #search_block_top .button { border: none; border-radius: 0; color: #fff; text-transform: uppercase; background: black; float: left; font-size: 20px; height: 37px; } in blocksearch.css effect if i leave the quick search module in header section too then in it doesn't show below menu, so i removed it from the header section. and I M REALLY THANKFUL TO YOU but i m not able to find a file with a name blocksearch.css ?? Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 this is all what i get in my blocksearch folder. Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 and what directory you're browsing? 1 Link to comment Share on other sites More sharing options...
stottycabanas Posted March 6, 2014 Share Posted March 6, 2014 AmmyRao, as vekia also is suspecting, I think your screenshot is of the folder /themes/default/modules/blocksearch. You need to look instead in /modules/blocksearch - you'll find blocksearch.css there. Cheers, Dave 1 Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 and what directory you're browsing? AmmyRao, as vekia also is suspecting, I think your screenshot is of the folder /themes/default/modules/blocksearch. You need to look instead in /modules/blocksearch - you'll find blocksearch.css there. Cheers, Dave and what directory you're browsing? yes i was looking inside default/modules/blocksearch now i got the file thanks a lot vekia and stottycabanas now cheers Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 may i know one more thing what is the use of default/modules/blocksearch then? Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 and if i alter the blocksearch.css file then when i will upgrade to newer version of prestashop those changes will be lost? am i right? and if yes what is the alternate way? Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 default/modules/blocksearch is a directory for "overrides", in this directory you can override module .tpl files it mean, that your script will use this file, not original from modules section, to generate content of visible on website more about overrides: http://doc.prestashop.com/display/PS15/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingamodule%27sbehavior Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 default/modules/blocksearch is a directory for "overrides", in this directory you can override module .tpl files it mean, that your script will use this file, not original from modules section, to generate content of visible on website more about overrides: http://doc.prestashop.com/display/PS15/Overriding+default+behaviors#Overridingdefaultbehaviors-Overridingamodule%27sbehavior ok i got it, thanks now as i am editing the blocksearch.css, nothing is changing on my website? do i need to copy the blocksearch.css file from /modules/blocksearch to some other place? Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 make sure that: you've got disabled option to CCC for css files under adv. parameters > performance tab while changing css files , it's necessary to disable it. Link to comment Share on other sites More sharing options...
stottycabanas Posted March 6, 2014 Share Posted March 6, 2014 No, it's in the correct place. Try clearing your browser's cache use Ctrl-F5 to refresh the page. Cheers, Dave Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 make sure that: you've got disabled option to CCC for css files under adv. parameters > performance tab while changing css files , it's necessary to disable it. No, it's in the correct place. Try clearing your browser's cache use Ctrl-F5 to refresh the page. Cheers, Dave so should i change the original file inside /modules/blocksearch or i should copy that blocksearch.css file somewhere else before editing? Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 after using ccc for css the search moved to extreme right? Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 you turned on or off ccc for css? it looks like css styles for mobile version, and common problem go to preferences > themes turn on (or off) mobile theme, refresh your front office then back to preferences > themes and switch mobile version one again, refresh front office once again Link to comment Share on other sites More sharing options...
AmmyRao Posted March 6, 2014 Author Share Posted March 6, 2014 you turned on or off ccc for css? it looks like css styles for mobile version, and common problem go to preferences > themes turn on (or off) mobile theme, refresh your front office then back to preferences > themes and switch mobile version one again, refresh front office once again these are the settings for ccc Link to comment Share on other sites More sharing options...
stottycabanas Posted March 6, 2014 Share Posted March 6, 2014 so should i change the original file inside /modules/blocksearch or i should copy that blocksearch.css file somewhere else before editing? The file in /modules/blocksearch is the one to edit. If, before you start editing, you want to make a backup copy of this file so that you can revert to the original if necessary, that's fine. You also need to follow vekia's earlier advice - change the CCC setting for css to 'Keep CSS as original', and follow the steps relating to the mobile theme. It will be easier to help you if you can provide the url for your site. Cheers, Dave 1 Link to comment Share on other sites More sharing options...
vekia Posted March 6, 2014 Share Posted March 6, 2014 "KEEP CSS AS ORIGINAL" 1 Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 The file in /modules/blocksearch is the one to edit. If, before you start editing, you want to make a backup copy of this file so that you can revert to the original if necessary, that's fine. You also need to follow vekia's earlier advice - change the CCC setting for css to 'Keep CSS as original', and follow the steps relating to the mobile theme. It will be easier to help you if you can provide the url for your site. Cheers, Dave "KEEP CSS AS ORIGINAL" thanks and ok i will keep css as original and the url to my website is www.libever.com Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 and i am still not able to the reflect the changes on my wesbite that i have made in css file Link to comment Share on other sites More sharing options...
stottycabanas Posted March 7, 2014 Share Posted March 7, 2014 no, don't touch module in displayHeader hook. it must be there. if i leave the quick search module in header section too then in it doesn't show below menu, so i removed it from the header section. If you don't follow the advice you're given, you may end up with problems! Because you removed the module from the header, the blocksearch.css file won't load. That's why you don't see any changes. Put it back. Cheers, Dave 1 Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 If you don't follow the advice you're given, you may end up with problems! Because you removed the module from the header, the blocksearch.css file won't load. That's why you don't see any changes. Put it back. Cheers, Dave i wanted that search bar at that place so vekia referred me this solution u should check my first post in this topic to see at what place i want my search box to be Thanks Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 http://i.imgur.com/99DvAwf.png this is what i want Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 "KEEP CSS AS ORIGINAL" any help? Link to comment Share on other sites More sharing options...
stottycabanas Posted March 7, 2014 Share Posted March 7, 2014 i wanted that search bar at that place so vekia referred me this solution u should check my first post in this topic to see at what place i want my search box to be Vekia didn't tell you to unhook the module from displayHeader - quite the opposite. I'm aware of what you're trying to achieve. If you had followed the advice given, you would get the result shown in the image below. As far as I can see, that matches your requirement for the search box - the positioning can then be amended to suit. 1 Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 Vekia didn't tell you to unhook the module from displayHeader - quite the opposite. I'm aware of what you're trying to achieve. If you had followed the advice given, you would get the result shown in the image below. As far as I can see, that matches your requirement for the search box - the positioning can then be amended to suit. ohh yes i unhook it from the header section but i did it because before doing like that the search box was not coming below the menu ok now tell me what should i do? Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 now u can check my website the search box has moved above menu now waiting for the instructions. Thanks Link to comment Share on other sites More sharing options...
AmmyRao Posted March 7, 2014 Author Share Posted March 7, 2014 now i got what u mean thanks now i m able to reflect the chaneges made to the .css file on my website u guys rocks. Thanks a lot but i m coming with a lot more things very soon. Cheers Link to comment Share on other sites More sharing options...
vekia Posted March 7, 2014 Share Posted March 7, 2014 thank you for confirmation we all are waiting for your new topics thread marked as solved with regards, Milos 1 Link to comment Share on other sites More sharing options...
hashmi photos Posted March 14, 2014 Share Posted March 14, 2014 where is position module please download link Link to comment Share on other sites More sharing options...
vekia Posted March 14, 2014 Share Posted March 14, 2014 there is no download link because it's a back office feature under modules > positions tab. 1 Link to comment Share on other sites More sharing options...
mrsvijay Posted October 11, 2014 Share Posted October 11, 2014 (edited) Hi I want change the position of quick search box and cart box from top menu into logo section i've attached image check it. And when i refresh the page, one error is displayed below of menu barlike "Newsletter: Invalid email address", thats also i mentioned in picture. Now i want change the position of search bar and cart box from menu onto logo section and need clear that error message. (how to clear that message?) Edited October 11, 2014 by mrsvijay (see edit history) Link to comment Share on other sites More sharing options...
somits1 Posted January 25, 2016 Share Posted January 25, 2016 Hi, i am using prestashop 1.5.6 for my website http://www.slmobileprice.com In mobile theme search box not displaying on top position on category page. On home page search box displaying on top. But after clicking on any categoryits displaying in middle. So please help me to solve the issue. Thanks, Somit Link to comment Share on other sites More sharing options...
karola Posted August 6, 2017 Share Posted August 6, 2017 Guys, is it possible to have the search block only on home page? Link to comment Share on other sites More sharing options...
Maurice Posted April 16, 2023 Share Posted April 16, 2023 Dear Sirs , appreciate an help for Search Bar Issue Prestashop 1.7.8.7 Classic Theme i would Modify the size of Classic Search bar for example 500px x 40 px (original should be 208 Px per 20px) and eventually Put the search Bar on the Middle Kindly ask if i should add something on Ps_searchbar.tpl or i should modify another file i do not remember anymore Thanks Regards Maurice Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now