Support » Fixing WordPress » How to add php functions file

  • scott1978

    (@scott1978)


    Hi,

    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,

    Scott

Viewing 3 replies - 1 through 3 (of 3 total)
  • michael.mariart

    (@michaelmariart)

    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.

    scott1978

    (@scott1978)

    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,

    Scott

    Christine Rondeau

    (@crondeau)

    Volunteer Forum Moderator

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add php functions file’ is closed to new replies.