• Resolved DAZDOREY

    (@dazdorey)


    I have created a child theme for my Twenty Eleven template.
    I am making all my changes in the child theme.
    Here is my confusion.
    In the Dash board of my site….. which them should be activated?
    ….. the original Twenty Eleven or the child theme?
    When I activate the child theme I get this extra type.

    Warning: Cannot modify header information – headers already sent by (output started at /home/davidburtch/public_html/wp-content/themes/twentyeleven_child/functions.php:8) in /home/davidburtch/public_html/wp-content/plugins/wpclef/includes/lib/wp-session/class-wp-session.php on line 130″

    How can I get back on track

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    (@macmanx)

    Both the parent and child theme need to be installed, but the child theme is the one you should activate.

    In your case, you have unexpected whitespace (either a space or an entire line) on line 8 of the /wp-content/themes/twentyeleven_child/functions.php file. See this guide for more info.

    Thread Starter DAZDOREY

    (@dazdorey)

    Wow…. nothing short of brain surgery.
    Code in my Twenty Eleven Child: Theme Functions (functions.php) is now:
    <?php
    define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘twentyeleven_header_image_width’, 1000 ) );
    define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyeleven_header_image_height’, 10 ) );
    ?>

    I don’t get it — the original theme shows correctly — no header
    My child theme show the header I want to remove.
    Please continue to steer me in the right direction

    Moderator James Huff

    (@macmanx)

    For that, I recommend asking at https://ww.wp.xz.cn/support/theme/twentyeleven so the theme’s developers and support community can help you with this.

    Thread Starter DAZDOREY

    (@dazdorey)

    I figured some issues out with your guidance.
    THANK YOU SO MUCH!!!!

    But can you explain what I have done here.
    My goal is to have NO Header image and the menu across the top of the screen.
    I have this when I activate the original Twelve Eleven theme
    but when I activate the Child theme…. the heading image appears?????
    I am very appreciative of your help.

    Moderator James Huff

    (@macmanx)

    I’m not sure, personally I don’t have time at the moment to get into custom coding, which is why I recommended that you reach out to the people who know the theme best at https://ww.wp.xz.cn/support/theme/twentyeleven

    Edit: Topic continues at https://ww.wp.xz.cn/support/topic/moving-graphic-up/

    • This reply was modified 9 years, 3 months ago by James Huff.
    • This reply was modified 9 years, 2 months ago by James Huff.
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Child Theme activation’ is closed to new replies.