Custom functions not executing in Pro Child Theme

Hi

I have a custom function that I need the theme to execute. Here is what I have done.

  1. Downloaded the Pro Child Theme
  2. Exported the XCS file from the parent Theme
  3. Activated the Child Theme
  4. Imported the XCS File
  5. Using FTP, edited the functions.php and tested it with the child theme. Works Perfectly.
  6. Activated Parent Theme Again, tested the function. Stop Working.

What am I doing wrong?

Hi Thomas,

Thanks for reaching out.
If the function written within the child theme and the parent theme is activated, the function will not be called. But if the function is written in the parent theme, the child theme can call that.
If that is not the case, you are trying to point out something else, please provide a few more information to understand what you are trying to acheive here.

Please remember that custom coding is beyond the scope of Theme Support, still, we are curious to know how you are trying to call the function.

Thanks

I ahve been told by another source that I can leave the child theme activated. So I think all is ok

Hello Thomas,

As mentioned by my colleague @tristup, if you have added the custom function to the child theme, you need to keep it activated so that your custom functions work.

Hope it helps
Thanks