WordPress.org

Forums

[Twenty Eleven] Adding functions.php file (2 posts)

  1. Ruthie
    Member
    Posted 2 years ago #

    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

  2. Klick Design
    Member
    Posted 2 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.