Jump to content
thirty bees forum
  • 0

Change the hook for faceted search module


Question

Posted

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!

16 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

@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

  • 0
Posted

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.

  • 0
Posted

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...