WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. lhwerges
    Member
    Posted 2 months ago #

    Hi,

    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
    Member
    Posted 2 months ago #

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

    <?php

    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
    Member
    Posted 2 months 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
    Member
    Posted 2 months ago #

    @acub,

    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
    Member
    Posted 2 months 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.

Reply

You must log in to post.

About this Theme

About this Topic