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.

Get access to all our themes and plugins

Trusted by over 1000+ websites

Become a member to use our themes & plugins for an unlimited number of sites. No restrictions!

30-day money-back guarantee.

Not satisfied? Your money back, no questions asked.

Subscribe

Join our mailing list to receive the latest news and updates from our team.

You have Successfully Subscribed!