ImperialTrader Posted January 23, 2015 Share Posted January 23, 2015 Hello I would like to modify the header and move the search box position to be under the Cart Also I would like to add a HTML code (text/img/links/etc..) between the logo and the (Search Box + Cart) check this picture explaining everything .. Thanks in advance Link to comment Share on other sites More sharing options...
vekia Posted January 23, 2015 Share Posted January 23, 2015 1)go to modules> positions move blockSearch module to position after blockCart on modules list named displayTop 2) open themes/your-theme/modules/blockcart/blockcart.tpl at the begining of the file add: <div class="col-lg-4 pull-right> and change line: <div class="col-sm-4 clearfix{if $PS_CATALOG_MODE} header_user_catalog{/if}"> to: <div class="col-sm-4 pull-right clearfix{if $PS_CATALOG_MODE} header_user_catalog{/if}"> 3) go to /themes/your-theme/modules/blocksearch/blocksearch.tpl at the very end of the file add: </div> change: <div id="search_block_top" class="col-sm-4 clearfix"> to: <div id="search_block_top" class="col-sm-4 pull-right clearfix"> Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 24, 2015 Author Share Posted January 24, 2015 3) I think you mean to edit this file "blocksearch-top.tpl" not this "blocksearch.tpl" .. correct? Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 25, 2015 Author Share Posted January 25, 2015 1)go to modules> positions move blockSearch module to position after blockCart on modules list named displayTop 2) open themes/your-theme/modules/blockcart/blockcart.tpl at the begining of the file add: <div class="col-lg-4 pull-right> and change line: <div class="col-sm-4 clearfix{if $PS_CATALOG_MODE} header_user_catalog{/if}"> to: <div class="col-sm-4 pull-right clearfix{if $PS_CATALOG_MODE} header_user_catalog{/if}"> 3) go to /themes/your-theme/modules/blocksearch/blocksearch.tpl at the very end of the file add: </div> change: <div id="search_block_top" class="col-sm-4 clearfix"> to: <div id="search_block_top" class="col-sm-4 pull-right clearfix"> 3) I think you mean to edit this file "blocksearch-top.tpl" not this "blocksearch.tpl" .. correct? Link to comment Share on other sites More sharing options...
vekia Posted January 25, 2015 Share Posted January 25, 2015 i don't remember now, but if contents of blocksearch-top.tpl are the same, change it there i will check it once i will have an access to my PC :-) Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 25, 2015 Author Share Posted January 25, 2015 i don't remember now, but if contents of blocksearch-top.tpl are the same, change it there i will check it once i will have an access to my PC :-) Yea it have the content (code) you mentioned exactly and I changed it as per your instructions.. But it didn't give me the results I need check the picture Link to comment Share on other sites More sharing options...
vekia Posted January 25, 2015 Share Posted January 25, 2015 can you share url to page where you applied these changes? i need to inspect it. i did it on my own while i was writing guide above, and it works exactly as you wanted. Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 25, 2015 Author Share Posted January 25, 2015 can you share url to page where you applied these changes? i need to inspect it. i did it on my own while i was writing guide above, and it works exactly as you wanted. I see the code doesn't take effect .. don't know why! http://usedmotopart.com/ You can check both files here: http://usedmotopart.com/vekia.rar Open each file and search for "vekia" to get the modified part in the page Link to comment Share on other sites More sharing options...
vekia Posted January 25, 2015 Share Posted January 25, 2015 you recompiled theme and cleared cache? Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 25, 2015 Author Share Posted January 25, 2015 you recompiled theme and cleared cache? Sorry, but what do you mean by recompiled theme? Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 25, 2015 Author Share Posted January 25, 2015 you recompiled theme and cleared cache? There is something strange is happening.. I deleted everything in header.tpl and I uploaded the file .. but I see the website is running perfect without any problem HOW?! Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2015 Share Posted January 26, 2015 1) you use different theme 2) it's a matter of cache and you just need to turn it off and recompile theme Link to comment Share on other sites More sharing options...
soufiane011 Posted January 26, 2015 Share Posted January 26, 2015 (edited) Hi vekia, Please i need your help in order to change position of module search and logo like the picture in attachement. Thank you Edited January 26, 2015 by soufiane011 (see edit history) Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 26, 2015 Author Share Posted January 26, 2015 (edited) 1) you use different theme 2) it's a matter of cache and you just need to turn it off and recompile theme ok, now I closed the cache and I recompiled the theme files and I see all the files code modifying has been changed..! Now let's back again to the main problem and to change the positions of the "Search box" and "Cart" Could you please Inspect the code you told me to add in both files "blocksearch-top.tpl" and "blockcart.tpl" to check if it's correct or not ? http://usedmotopart.com/ You can check both files here: http://usedmotopart.com/vekia.rar Open each file and search for "vekia" to get the modified part in the page Edited January 26, 2015 by ImperialTrader (see edit history) Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 27, 2015 Author Share Posted January 27, 2015 1) you use different theme 2) it's a matter of cache and you just need to turn it off and recompile theme Hey bro What did you say? Did you check my previous post? Link to comment Share on other sites More sharing options...
vekia Posted January 28, 2015 Share Posted January 28, 2015 this is your code compare it with my suggestions from post #4 you will see that code you have is not the code that i suggested to use at the moment im not able to donwload files and browse them, im on mobile device Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 28, 2015 Author Share Posted January 28, 2015 (edited) this is your code compare it with my suggestions from post #4 you will see that code you have is not the code that i suggested to use at the moment im not able to donwload files and browse them, im on mobile device I found a small mistake in the code and I solved it.. Now we have successfully moved the 2 modules (Search box & Cart) to the right .. but both of them are overlaid to each other! I think the next step should be in CSS to move "Cart" up and the "Search box" down Edited January 28, 2015 by ImperialTrader (see edit history) Link to comment Share on other sites More sharing options...
ImperialTrader Posted January 30, 2015 Author Share Posted January 30, 2015 (edited) this is your code compare it with my suggestions from post #4 you will see that code you have is not the code that i suggested to use at the moment im not able to donwload files and browse them, im on mobile device I'm sorry if I'm annoying you Did you check my last post #17? Edited January 30, 2015 by ImperialTrader (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 31, 2015 Share Posted January 31, 2015 hello 2) open themes/your-theme/modules/blockcart/blockcart.tpl at the begining of the file add: <div class="col-lg-4 pull-right> change col-lg-4 to col-lg-8 Link to comment Share on other sites More sharing options...
ImperialTrader Posted February 1, 2015 Author Share Posted February 1, 2015 hello change col-lg-4 to col-lg-8 Not yet Everything I increase this number, the search box moves left, not down! http://usedmotopart.com/ Link to comment Share on other sites More sharing options...
ImperialTrader Posted February 6, 2015 Author Share Posted February 6, 2015 hello change col-lg-4 to col-lg-8 I'm sorry if I'm annoying you again Did you check my last post #20? 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