• Resolved Damien

    (@puresaian)


    Hi,

    For a custom post type category, I want to replace the radio button template with a custom one. I’d like to add a custom image and my proper structure.

    I created a custom_category-radio.php file but it doesn’t work.

    Is that possible?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support fesupportteam

    (@fesupportteam)

    Hi @puresaian

    You need to use template overrides: https://filtereverything.pro/resources/templates-overriding/

    In the radio.php file, add all the required changes, but keep the general structure and class names in the container to prevent any issues. The JS relies on these classes, and if any required classes are missing, it won’t work correctly.

    You can also add logic in radio.php to check the filters, for example, if it’s from a required taxonomy, use this template; otherwise, use the default radio buttons template.

    But everything should be stored inside the radio.php file.

    Adding a file like custom_category-radio.php won’t display anywhere on its own. You would also need to modify the plugin code to make it work on all levels, which is by no means an easy task.

    Best Regards,
    Victor

    Thread Starter Damien

    (@puresaian)

    OK thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom Filter Template’ is closed to new replies.