WordPress.org

Forums

functions.php in child theme? (6 posts)

  1. npacademy
    Member
    Posted 1 year ago #

    Hi,

    I need to put my functions.php into child theme, but when I copy it and move it into my child-theme, the site breaks.

    How do I do this?

    Thanks.

  2. Michael
    Forum Moderator
    Posted 1 year ago #

    http://codex.wordpress.org/Child_Themes#Using_functions.php

    don't copy the full functions.php from the parent theme into the child theme;
    just add any changes into a new functions.php on the child theme, like filters, actions, pluggable functions...

    what exactly are you trying to change?

    what theme are you using?

  3. npacademy
    Member
    Posted 1 year ago #

    Hi

    I'm using Renad from theme forest.

    I'm changing a piece of php in the functions file. How do I put a change instead of a completely new piece of code in the child theme?

  4. Michael
    Forum Moderator
    Posted 1 year ago #

    please contact the theme's developer directly for support with your question.

    this forum cannot help with specific problems in commercial themes; http://codex.wordpress.org/Forum_Welcome#Commercial_Products

  5. npacademy
    Member
    Posted 1 year ago #

    It's not about the theme though? It's a universal thing to edit the functions.php in all free/paid themes surely.

  6. Michael
    Forum Moderator
    Posted 1 year ago #

    It's a universal thing to edit the functions.php in all free/paid themes surely.

    yes - and it is also universal not to copy the full functions.php from the parent theme into the child theme.

    but what you edit and how depends on the theme.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.