• I’ve read the codex pages, but I’m still a little confused. I understand that a child theme’s functions.php file is called before the parent functions.php, but I can’t figure out how to start and end the child function page so that it doesn’t break the theme.

    Really basic question: What text should I add above and below the new functions I insert so that the theme reads the function file correctly and doesn’t break?

Viewing 1 replies (of 1 total)
  • <?php

    ^ at the top

    \/– at the bottom

    ?>

    The important thing is to not have any spaces or newlines before the <?php and after the ?>

    If there were it will cause the theme to think that something was ‘outputted’ which will cause ‘headers already sent’ messages to the end users browser.

Viewing 1 replies (of 1 total)
  • The topic ‘How to start and end a child functions.php file?’ is closed to new replies.