Adding function.php to Child's Theme (5 posts)

  1. lhwerges
    Posted 2 years ago #


    I am trying to customize in function.php in Customizr Child's Theme but there isn't one. Can someone tell me how to add function.php to Customizr Child's Theme? Any help would be greatly appreciated! This is my first website and I am a bit lost.

  2. acub
    Posted 2 years ago #

    1. Open a new text file with notepad or notepad++.
    2. Write


    in it
    3. Save it as functions.php, in your child theme folder root, with an UTF-8 encoding.

    Now you have a working functions.php.
    You may add php functions starting from second line and they will get executed by WordPress every time your theme gets loaded (that's on every single page of your website, including admin).

  3. rdellconsulting
    Posted 2 years ago #

    I suggest you take a look at the Guides you'll find here.

    Look in the left sidebar for a list of useful documents that will help you understand more.

  4. lhwerges
    Posted 2 years ago #


    Thank you. Where would the child theme folder root be? Sorry, I am a complete newbie. I found the notepad++ but don't know where I would save this to.

    @rdellconsulting, thank you for this. I appreciate it!

  5. acub
    Posted 2 years ago #

    "Child theme folder root" means inside the child theme folder, but not in any sub-folder of it (in case you have any). Where style.css of your child theme is.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic