• Resolved speed2011

    (@speed2011)


    Hi,

    I have setup my functions.php in the child theme but if I keep the closing php tag, it shows up on my site.

    If I completely remove

    ?> //Closing PHP tag

    from the file, it works fine. Do I need to have the close php tag in the functions.php in my child theme?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The closing tag actually isn’t the issue here; whether your functions.php has one or not makes no difference. What’s happening is that the comment comes after the closing tag and so the PHP parser never sees it as a comment. If you deleted the comment, it won’t show on your page and it won’t affect your functions.php.

    Thread Starter speed2011

    (@speed2011)

    Thanks! Just deleted it as you said and looks fine now. I only kept the closing tag.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘functions.php in Child Theme’ is closed to new replies.