The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to add php functions file (4 posts)

  1. scott1978
    Posted 3 years ago #


    I know this has been asked before but I'm still scratching my head.

    I need alter some PHP (I need to move the nav bar to underneath the header on TwentyTwelve).

    I have created a child css file and edit this file frequently.

    The question is: How do I add and PHP child theme? I have been searching for a long time but cannot find the answer.

    Please can someone give me very simple step by step instructions on how to do this.

    Many thanks,


  2. michael.mariart
    Posted 3 years ago #

    I'm guessing that you already have a child theme set up in order to get your CSS working correctly. If that's the case, you just create a new functions.php file in your child theme folder and it will be included automatically by the system when it loads.

  3. scott1978
    Posted 3 years ago #

    Hi Michael,

    Thanks for your quick response.

    DO I need to add text at the start if the file. For example the css file has the:

    @import url("../twentytwelve/style.css");

    Many thanks,


  4. You don't need to add the @import, but working with the functions.php in your child is a bit tricky.

    Here's some good info to get you started - http://codex.wordpress.org/Child_Themes#Using_functions.php

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.