[Support request] GP + Discourse

Home Forums Support [Support request] GP + Discourse

Home Forums Support GP + Discourse

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #517718
    André

    I have a Discourse forum on the backend of our WP/GP site.

    For SSO to work, and some customizations for MemberMouse, I’ve had to add stuff to functions.php…

    I use Code Snippets to add actions to WP/GP.

    HOWEVER, our MemberMouse/Discourse functions.php code doesn’t want to load using Code Snippets.

    So from generatepress/funtions.php I’ve had to append this:

    require get_template_directory() . '/membermouse.php';

    … and have that call an external php file (membermouse.php).

    I’m guessing this isn’t a GP issue. Any ideas why using Code Snippets doesn’t work, but having the exact same code in a php file, then calling that from functions.php does work?

    Would rather have it in Code Snippets so that the code doesn’t get overwritten (and then not called).

    TIA!

    André

    #518007
    Tom
    Lead Developer
    Lead Developer

    Not sure why it wouldn’t work, but you should probably just use a child theme: https://docs.generatepress.com/article/using-child-theme/

    Then you can have your own empty functions.php file, which you can add your code to.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.