Title: syntax error in PHP code
Last modified: October 30, 2017

---

# syntax error in PHP code

 *  Resolved [Barinto](https://wordpress.org/support/users/bigbtc/)
 * (@bigbtc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/)
 * Hi @nevins
 * Thank you for your reply. Can you tell me which PHP file this syntax error is
   in? It is not in functions or any in the INC folder. Thank you.
 * There is a syntax error in your PHP code:
 * $parent_style = ‘$parent_style = ‘twentyseventeen-style’;
    Instead it should 
   be this:
 * $parent_style = ‘twentyseventeen-style’;

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/#post-9633103)
 * I don’t understand the context of this, can you clarify?
 *  Thread Starter [Barinto](https://wordpress.org/support/users/bigbtc/)
 * (@bigbtc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/#post-9633147)
 * I posted this:
 * “Hi Andrew Nevins [@anevins](https://wordpress.org/support/users/anevins/), everything
   works well with this theme except when using a “menu button” to move to the the
   next section, a small part (say 1 inch) of the “header media” (sized 2000×1200)
   remains in view at the top of each section. I have to use the scroll bar to position
   the section properly to remove the small piece of header media showing. This 
   also happens with the default header image that comes with the WP Theme. Can 
   you assist with this please, thank you.”
 * to which you responded:
 * There is a syntax error in your PHP code:
 * $parent_style = ‘$parent_style = ‘twentyseventeen-style’;
    Instead it should 
   be this:
 * $parent_style = ‘twentyseventeen-style’;
 * ………………..
 * I cannot find the folder/file that has the php file that needs to be modified
   per your instructions, Thank you
 * [https://wordpress.org/support/topic/twenty-seventeen-child-theme/page/2/#post-9631536](https://wordpress.org/support/topic/twenty-seventeen-child-theme/page/2/#post-9631536)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/#post-9633148)
 * I wasn’t responding to you, I was responding to the person whose thread you posted
   in. Please don’t do that, please don’t post in other people’s threads to discuss
   your own problem.
 * If you have a problem you need to open a new thread here to discuss it: [https://wordpress.org/support/theme/twentyseventeen/#new-post](https://wordpress.org/support/theme/twentyseventeen/#new-post)
 *  [Andrew Nevins](https://wordpress.org/support/users/anevins/)
 * (@anevins)
 * WCLDN 2018 Contributor | Volunteer support
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/#post-9633206)
 * I’m sorry that came across a bit too harshly than I wanted. Please do open a 
   new thread to discuss your real issue.
 *  Thread Starter [Barinto](https://wordpress.org/support/users/bigbtc/)
 * (@bigbtc)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/#post-9633233)
 * No worries. I’ve opened a new thread. I apologize for not paying attention to
   where post.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘syntax error in PHP code’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/twentyseventeen/4.1/screenshot.
   png)
 * Twenty Seventeen
 * [Support Threads](https://wordpress.org/support/theme/twentyseventeen/)
 * [Active Topics](https://wordpress.org/support/theme/twentyseventeen/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/twentyseventeen/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/twentyseventeen/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Barinto](https://wordpress.org/support/users/bigbtc/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/syntax-error-in-php-code/#post-9633233)
 * Status: resolved