Select Page
Topic Progress:

Filter

Yes, we need to write a filter which will add a view “slug” as shown the in example below. This code can either be written in a custom plugin or the functions.php file of your theme (or child theme if you are using a third party theme).

This user-defined slug will show up in your divi faq modules when you select “Has Custom View” and then select an option from “Select Custom View”. Below is the screenshot for the same.

Shortcode

If you are using a direct shortcode, the following sample code can be used.

[df_faq_framework include_categories=” view_slug=’my_custom_faq_slug’ question_class=” answer_class=”]

View File

Sample view file shown below. The variable $attrs will be available in the view file which will be attributes from the shortcode or the divi faq module.

Divi Framework - build anything with Divi to create your online business.

30 day money back guarantee

Safe & Secure online payment

Support team & documentation