Skip to content
View in the app

A better way to browse. Learn more.

thirty bees forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Change the hook for faceted search module

Featured Replies

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!

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

  • Author

@lesley Thanks, Lesley! I've done it but there is not showing yet from Module Positions: alt text

Maybe I need to change something more?

  • 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?

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

  • 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

  • Author

@lesley It only shows that "Display TopColumn" isn't in the list of transplant module (after I've added that code) :)

@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?

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.

  • Author

@lesley Yeah, that looks great! I'm going to try and tell you :D

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.