spid3r1987 Posted January 4, 2011 Share Posted January 4, 2011 where is the code that loads the editorial_block into the center column, as i want to move it from the center column to the header??not sure if this should be in development or config or somewhere else lolbut re-direction and any help is greatly appreciated with great thanks to PrestaShopic Link to comment Share on other sites More sharing options...
Pshopic Posted January 4, 2011 Share Posted January 4, 2011 HiYou have to edit "editorial.php" under "moduls>editorial"Find below code between line:23-28 public function install() { if (!parent::install()) return false; return $this->registerHook('home'); } Changed it with below: public function install() { if (!parent::install()) return false; return $this->registerHook('header'); } Then go to line 244 and find below code: function hookHome($params) changed it with: function hookHeader($params) Hope this will help you. Link to comment Share on other sites More sharing options...
spid3r1987 Posted January 4, 2011 Author Share Posted January 4, 2011 brilliant, thanks now its in the header, how do i align it so that its inline with the search and my logo, not above themis that the header.tpland move the "HOOK_HEADER" down into the ??? Link to comment Share on other sites More sharing options...
Pshopic Posted January 4, 2011 Share Posted January 4, 2011 Can you send your URL. I want to see what is the result ? Link to comment Share on other sites More sharing options...
spid3r1987 Posted January 4, 2011 Author Share Posted January 4, 2011 iv just moved the "HOOK_HEADER" INTO THE and its moved it down, think i just need to sort the CSS file out nowbut itshttp://shop.xxx-tools.co.ukonly a test atm... Link to comment Share on other sites More sharing options...
Pshopic Posted January 4, 2011 Share Posted January 4, 2011 As I understood from you that you want to display editorial block between logo and search block. Then you have to change above codes again. public function install() { if (!parent::install()) return false; return $this->registerHook('header'); } Changed it with: public function install() { if (!parent::install()) return false; return $this->registerHook('Top'); } Then change function hookHeader($params) to function hookTop($params) then you have to uninstall and install it. Go to back office and change module position by drag and drop under "module>Positions". It will be displayed like in image between " " if you put your editorial in first position. Then I think we will need to change some css. Link to comment Share on other sites More sharing options...
spid3r1987 Posted January 4, 2011 Author Share Posted January 4, 2011 yeah, iv changed all the information,its now showing it above the search boxbut your correct, where the RED box is on your picture, is where i want the information to be shown....but how, im not too sure lolBtw, thanks for all your help Link to comment Share on other sites More sharing options...
Pshopic Posted January 4, 2011 Share Posted January 4, 2011 That is okey until. Now we have to make some changes in global.css.Find line 200: #header_right { float: right; margin-bottom: 15px; text-align: right; width: 32%; } change it with #header_right { float: right; margin-bottom: 15px; text-align: left; width: 73%; } Then go to line 1132: .editorial_block { border-top: 15px none; } change it with: .editorial_block { border-top: 15px none; float: left; width: 55%; } Hope that is all. Link to comment Share on other sites More sharing options...
spid3r1987 Posted January 4, 2011 Author Share Posted January 4, 2011 dude, you are a true legend!!exactly how i wanted it!!!!!thanks so much shame there aint like a kudos thing on here, or a reputation thing!! Link to comment Share on other sites More sharing options...
Pshopic Posted January 4, 2011 Share Posted January 4, 2011 You welcome Link to comment Share on other sites More sharing options...
joncody45 Posted March 29, 2011 Share Posted March 29, 2011 I need to move the editorial block also into my top div, but the code is different in PS4.0 and the instructions above do not work. I am usually decent at coding, but this one is beginning to stump me. Any help appreciated. Link to comment Share on other sites More sharing options...
w3bsolutions Posted April 17, 2012 Share Posted April 17, 2012 I need to move the editorial block also into my top div, but the code is different in PS4.0 and the instructions above do not work. I am usually decent at coding, but this one is beginning to stump me. Any help appreciated. Did anyone figure this out? I cannot manage to move the editorial block to the top div, it says the module cannot be moved to that Hook (Top of pages) Link to comment Share on other sites More sharing options...
big babol Posted April 17, 2012 Share Posted April 17, 2012 it's nice to see people willing to help those in trouble! Forum Italian ever meet! congratulations guys! excuse the intrusion. thanks 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