Archived topic
ENABLE CODE SNIPPET Via "Elements > Editing functions.php file possible
1 reply · Started by Jimmy on March 10, 2020
Below is a code snippet provided by LearnDash (learning management software I'm using for my courses), and it makes a slight change to how LearnDash post types are registered.
-
Essentially, it adds the feature that Elementor needs in order to use courses, lessons & topics as single templates in Elementor.
-
https://ldx.design/enable-elementor-templates-learndash/
-
The 1st picture has the code on the author using the Code Snippets plugin.
I'm wondering how to enable this using Elements (via GeneratePress) and what the settings are following their directions (see 2nd screenshot).
Please let me know if you have any advice on how to do this only through Elements OR need to do as the URL instructions state via Code Snippets
Hi there,
The hooks element module cannot be used to edit the function.php file.
You would need to use one of these methods to add the code:
https://docs.generatepress.com/article/adding-php/