• Resolved 972 creative

    (@toddedelman)


    Hi there

    We’d like to add an ‘All’ link on the Legend Superpowers bar. Our client finds it a little confusing how to get all items to show up again after selecting a different category.

    How can we achieve this?

    Thanks,
    Todd

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Andy Fragen

    (@afragen)

    You can use the teccc_legend_html hook to add some instructions. That would be the simplest way.

    https://github.com/afragen/the-events-calendar-category-colors/wiki/Filters-and-Hooks#teccc_legend_html

    Otherwise you would have to create your own solution using a template override to the legend.php file.

    Thread Starter 972 creative

    (@toddedelman)

    In any place that I’ve seen a filter feature, most commonly on portfolios, they always have an ‘All’ button. Odd you chose not to include one.

    Thread Starter 972 creative

    (@toddedelman)

    Hmm… Added the legend explanation as you suggested to functions.php but it’s not displaying. Any ideas?

    Never mind – it works.

    • This reply was modified 7 years, 6 months ago by 972 creative.
    Plugin Author Andy Fragen

    (@afragen)

    > In any place that I’ve seen a filter feature, most commonly on portfolios, they always have an ‘All’ button. Odd you chose not to include one.

    Legend Superpowers only decreases the opacity of the non-selected categories. They are still visible. Clicking on the category selection again returns the opacity to normal.

    If legend superpowers is not active, The Events Calendar creates a breadcrumb link. This is not generated by Category Colors. It’s just that adding a legend makes it simpler to find that link.

    Thread Starter 972 creative

    (@toddedelman)

    Andy- as a technical person, I understand what you’re saying:

    Legend Superpowers only decreases the opacity of the non-selected categories. They are still visible. Clicking on the category selection again returns the opacity to normal.

    But for the average user that comes to the clients corporate website, they may not understand that, and politely said, an “All” button before the category list would just make things easier.

    The functionality of the button would simply check if there are any categories that are currently opaque and return them to their normal status.

    Is that something that can be added?

    Plugin Author Andy Fragen

    (@afragen)

    The plugin is at https://github.com/afragen/the-events-calendar-category-colors

    I would gladly accept a PR.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add ‘All’ to Legend Superpowers’ is closed to new replies.