• Hello World!

    This is my first post, so please go easy on this noob. I apologise in advance if it’s a duplicate.

    Ok, so I am developing a website using WordPress 3.4
    I have chosen the Twenty Eleven Theme.
    However IMHO the header is too large so I plan on modifying it.

    Ok so I understand that in order to preserve my changes I should create a child theme, which I have done.

    And in order to change the header I have to change some PHP. No problem.

    Here comes the tricky bit.

    My website is hosted on a colleagues server. So I don’t have directory access.All I can do it make changes via the WordPress interface.

    So to make a child theme, I used a “create a child theme” plugin.

    But when it comes to making a change to the PHP I am unsure what to do next?

    I can go into Dashboard > Appearance > Editor

    Now heres the problem

    I have two themes

    1.) Twenty Eleven

    2.) Mike’s Child

    Twenty Eleven has functions.php and Mike’s Child doesn’t

    If I don’t have access to the directories on the web server. How do I copy functions.php into my child theme and amend it?

    Thanks in Advance

    Mike

Viewing 3 replies - 1 through 3 (of 3 total)
  • How do I copy functions.php into my child theme and amend it?

    Create a new copy of the child theme locally that includes a blank functions.php file and zip into into a theme archive. Delete the current child theme on your site and upload the new child.

    Thread Starter LordLiverpool

    (@lordliverpool)

    Thanks I get you,

    Step 1:

    I would need to open each PHP file using

    Dashboard > Appearance > Editor

    and copy and paste the contents of each file into a blank local PHP file

    (Can I not download them all in one batch???)

    Step 2:

    Deleting the child theme I created

    (Do I really need to delete it???)

    Step 3:

    Modify the PHP files locally

    Step 4:

    Upload the new modified child theme using

    Dashboard > Tools > Upload Files (Destination: Theme)

    (Does WP know where to put all the PHP files???)

    Thanks

    Can I not download them all in one batch?

    Not via the Theme Editor, no. Your only other option is to ask your friend for FTP access.

    Do I really need to delete it?

    Yes – if you intend to use the same theme name & folder for your child. If you intend to use another theme name and folder name, you can skip the deletion step.

    Does WP know where to put all the PHP files?

    Yes, if you use Appearance-> Themes -> Install Themes -> Upload. Child themes are always uploaded to wp-content/themes – just like any standalone theme.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Child Theme's & PHP’ is closed to new replies.