WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Theme: Twenty Eleven] Editing functions_php of child theme of twenty eleven (8 posts)

  1. onerock
    Member
    Posted 2 years ago #

    I am attempting to change the header image of the twenty eleven theme to 1245x200 px. I have found for me, the only way to get this done is to add lines to the child themes functions_php. However, everything I add to the functions_php appears at as text at the top of every page on my website and the intended changes seems to be set. I can't seem to find anything related to this, but might have missed it. How do I correct this? Thanks in advance.

  2. egado
    Member
    Posted 2 years ago #

    Can you show us your childtheme functions.php ?
    If its to much code, please make use of: http://pastebin.com/

  3. alchymyth
    Forum Moderator
    Posted 2 years ago #

    if you start a new empty functions.php in the child theme, you need to open a php tag in the first line:

    <?php

  4. egado
    Member
    Posted 2 years ago #

    Well thats the fault I expected to see ;)

  5. onerock
    Member
    Posted 2 years ago #

    This is my current functions_php http://pastebin.com/pU4hjmK6

    when I add the <?php my child css gets completely ignored.

    Here is my style_css

    If I leave the <?php out of the functions_php, the child css is recognised and the page appears to be the correct size.

    Thanks for your help.

  6. onerock
    Member
    Posted 2 years ago #

    when I add the <?php my child css gets completely ignored.

    Just saw that you can edit the previous post :)

  7. onerock
    Member
    Posted 2 years ago #

    It appears that I neglected to add the style_css link so here it is.

    http://pastebin.com/TQhe6StA

  8. onerock
    Member
    Posted 2 years ago #

    Any further items that might cause this to not function correctly? I have added the <?php , but that has cause my child theme to break. Thanks again for any assistance that can be provided.

Topic Closed

This topic has been closed to new replies.

About this Topic