Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #480741

    Hi there,

    I have created a childtheme (to be on the safe side, in case of theme updates :)

    now I try to edit the funcionts.php.
    If I copy the functions.php from your theme (parenttheme) to my child theme directory, I receive an error :(
    With all other php files it work´s like this (fe. with the header.php).

    In google I found out, that I have to do changes in functions.php in childtheme in another way?!
    Can you explain me how that works?
    Which file I have to upload in my childtheme – directory? And do I have to change somethin in the functions.php in the parent directory too?

    in the functions.php at the parent theme I saw:
    /*
    * if you run a child theme and dont want to load the default functions.php file
    * set the global var below in you childthemes function.php to true:
    *
    * example: global $avia_config; $avia_config[‘use_child_theme_functions_only’] = true;
    * The default functions.php file will then no longer be loaded. You need to make sure then
    * to include framework and functions that you want to use by yourself.
    *
    * This is only recommended for advanced users
    */

    What I have to change in the bold passage? I´m not really sure, what to do with that information…

    Thank you very much,
    Greetings Miriam

    #480742

    Ah, I want that the functions.php content from the parent theme still works – I only want to be able to add some additional code to the functions.php in my childtheme :)

    Greetings Miriam

    #480747

    Hey!

    You can simply add codes to your child themes functions.php file and the default ones in parent theme would still work :)
    Please move all your custom codes from parent themes functions.php file to child themes functions.php file

    Cheers!
    Yigit

    #480757

    ah thank you – it works :)

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘edit a functions.php via childtheme’ is closed to new replies.