Where do I add my custom PHP code?

Inside the child theme

The best way to add your custom PHP code (small snippets) is in the functions.php file of your child theme.

  • flatsome-child
    • functions.php

Do not under any circumstance add PHP code in the  functions.php file of the parent theme! To keep your additions when you update the theme,  always use the functions.php file of your child theme.

By plugin

Alternatively, you can also add snippets and manage them with a plugin, e.g.  Code Snippets