WordPress.org

Ready to get started?Download WordPress

Forums

How to add php functions file (4 posts)

  1. scott1978
    Member
    Posted 1 year ago #

    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

  2. michael.mariart
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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,

    Scott

  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

Tags

No tags yet.