Site logo

Archived topic

Elements don't show up on a custom category (Using Directorist plugin)

9 replies · Started by Kaspars on January 13, 2023

Viewing posts 1–10 of 10

Hi,

I'm trying to show a custom element that would be triggered on a listing category page (Using a Directorist plugin), but it doesn't show up on the front end even though it can be found as an option when I set up a hook in the elements.

I tested the same hook on other pages, and it worked, so it has to be specific to the plugin setup.

Any help would be much appreciated as I tested multiple setups to make it work, but I have had no luck so far.

Thank you in advance.

Hi there,

Can you link me to this element? What hook are you using? What is the location you've set?

Let me know!

Hi Ying,

Thanks for the quick reply.

I'm testing the element hook on Discoverais.com.

I'm using a block - hook, and you can see the location there as well:

block hook

I'm trying to show it for this category:

category

That was quick, thanks.

I think we're approaching the main issue here with your last example. It seems that there's no way to select "cat1" because it doesn't show up when I select "pages" and then try to locate "cat1".

So I checked the page id, the single-category and single-category/cat1 have the same page id.

Then the location should be pages > single-category.

So it means there's no way to show different content based on hooks for these categories if they have the same id?

I.e. I'd need to show different content for each of these:
- single-category/cat1
- single-category/text
- etc.

Is there any workaround?

So it means there’s no way to show different content based on hooks for these categories if they have the same id?

That's correct. GP doesn't have hooks inside the plugin's block.

I would recommend reaching out to the plugin's support to see if they have hooks inside their block, or how to add content into their block.

Anyway, thanks a lot for your help.

I'll try to sort it out with the plugin support team.

No problem :)

This archived topic is closed to new replies.