Support » Themes and Templates » [Twenty Eleven] Adding functions.php file

  • Ruthie

    (@erdmanre)


    I created a child theme from Twenty Eleven and need to modify the functions.php file. I see where others have posted a similar question but the answers are not specific enough.

    How do I add the files to the child theme’s directory? I am not even sure how to access the theme directory. Do I need to download the file to my computer and then use FTP to add it to the child theme? And if so, how do I upload a file to a specific theme?

    Thanks for the help!

    Ruthie

Viewing 1 replies (of 1 total)
  • Klick Design

    (@klick-design)

    Hi Ruthie,
    FTP is the best way to acces the files and folders structure.
    If you navigate to yoursite/wp_content/themes/ in this folder you should see the default ‘twentyeleven’ folder that is the theme.
    You say you have created a child theme so I assume that you also have your theme folder here, so enter that folder, and this is where you will add a functions.php file.
    You should have a style.css in there already for you child theme.
    it will sit in the same folder..
    As below add opening and closing php tags with your php in between and save and upload as functions.php

    <?php
    php will go here...
    ?>

    see here

Viewing 1 replies (of 1 total)
  • The topic ‘[Twenty Eleven] Adding functions.php file’ is closed to new replies.