Title: function.php only working with main theme
Last modified: April 12, 2024

---

# function.php only working with main theme

 *  Resolved [adelinemartin](https://wordpress.org/support/users/adelinemartin/)
 * (@adelinemartin)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/function-php-only-working-with-main-theme/)
 * Hello,
 * I am currently building a new website, I bought the theme Salient and I need 
   to make some changes to my function.php file.
 * The problem is my code is only working when I use the main theme > function.php.
   
   I tried to use the same code in child theme > function.php and the changes are
   not happening.I’ve installed Query Monitor to understand why I have this issue,
   I am quite ok with CSS but very bad with developpement and php so can you please
   explain to me how to proceed to understand where this issue is coming from?
 * Thanks very much in advance,
   AM
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffunction-php-only-working-with-main-theme%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [John Blackbourn](https://wordpress.org/support/users/johnbillion/)
 * (@johnbillion)
 * WordPress Core Developer
 * [2 years, 2 months ago](https://wordpress.org/support/topic/function-php-only-working-with-main-theme/#post-17682433)
 * This isn’t anything that Query Monitor can help you with, sorry. Your best bet
   is to contact the author of the theme for advice.
 * Good luck!
 *  Thread Starter [adelinemartin](https://wordpress.org/support/users/adelinemartin/)
 * (@adelinemartin)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/function-php-only-working-with-main-theme/#post-17682471)
 * Oh ok thank you, I actually asked the author of the theme and they advised to
   use Query Monitor to understand the issue 😀
   Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘function.php only working with main theme’ is closed to new replies.

 * ![](https://ps.w.org/query-monitor/assets/icon.svg?rev=2994095)
 * [Query Monitor](https://wordpress.org/plugins/query-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/query-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/query-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/query-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/query-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/query-monitor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [adelinemartin](https://wordpress.org/support/users/adelinemartin/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/function-php-only-working-with-main-theme/#post-17682471)
 * Status: resolved