January 8, 20197 yr Hi, guys! I want to move the Faceted search module to the main column but positions are limited when I try to configure the new position. Do you know wich change I need to do (I think is via code) to insert in the main center column or another hook of my theme? Thank you very much!
January 8, 20197 yr I haven't tried this, but you might add this to the module php file and then hook it to the displayTopColumn public function hookTopColumn($params) { return $this->hookLeftColumn($params); } By module php file I mean blocklayered.php
January 10, 20197 yr Author @lesley Thanks, Lesley! I've done it but there is not showing yet from Module Positions: Maybe I need to change something more?
January 10, 20197 yr Author @lesley I'm not sure if I'm understanding what you mean... I've already show the screenshot: I've add that code, upload to the FTP and then, when I try to add the module to the new hook (from "positions" menu option), Display TopColumn is not showing. Is there any step more?
January 10, 20197 yr i think, if you have changed the php-file - reset module for new settings (new install) - after reset you can see and change it
January 10, 20197 yr I am not seeing the screen shot. Once you make the code change, you need to hook it though, https://i.imgur.com/Q9KBWBu.png
January 10, 20197 yr Author @lesley Mmm, that's what I'm doing. I've reseted too but nothing: https://elplandedan.com/wp-content/uploads/2019/01/Screenshot-2019-01-10-at-22.30.02.png
January 10, 20197 yr Author @lesley It only shows that "Display TopColumn" isn't in the list of transplant module (after I've added that code) :)
January 11, 20197 yr @lesley said in Change the hook for faceted search module: I haven't tried this, but you might add this to the module php file and then hook it to the displayTopColumn public function hookTopColumn($params) { return $this->hookLeftColumn($params); } By module php file I mean blocklayered.php Just to confirm, should hookLeftColumn in the code be hookTopColumn?
January 11, 20197 yr Yeah, there is no issue doing that. Most modules do that. I just tested it, I got the hook wrong use, public function hookdisplayTopColumn($params) { return $this->hookLeftColumn($params); } And then unhook it from the left column, and hook it to the top column. It will look like this, http://thirtybees-200675-702960.cloudwaysapps.com/coffee-and-tea and need to be restyled for being in the top column.
January 11, 20197 yr Author @lesley It worked perfectly, I've put it even on a special hook from the Panda Theme (displayCategoryHeader). I'm trying to adjust custom CSS, it will looks awesome :D Thank you so much, Lesley!
Create an account or sign in to comment