Site logo

[Resolved] Elements don’t show up on a custom category (Using Directorist plugin)

Home Forums Support [Resolved] Elements don’t show up on a custom category (Using Directorist plugin)

Home Forums Support Elements don’t show up on a custom category (Using Directorist plugin)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #2494479
    Kaspars

    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.

    #2494639
    Ying
    Staff
    Customer Support

    Hi there,

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

    Let me know!

    #2494657
    Kaspars

    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

    #2494678
    Ying
    Staff
    Customer Support

    Based on your location setting, it does work:
    https://your-domain.com/tools/asdfg/

    The page you linked previously: https://your-domain.com/single-category/cat1/ is a static page, if you want to target this page, the location would be pages > cat1

    #2494698
    Kaspars

    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”.

    #2494715
    Ying
    Staff
    Customer Support

    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.

    #2494718
    Kaspars

    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?

    #2494748
    Ying
    Staff
    Customer Support

    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.

    #2494751
    Kaspars

    Anyway, thanks a lot for your help.

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

    #2494769
    Ying
    Staff
    Customer Support

    No problem šŸ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.