0

I am facing this error ever since i wrote a function in functions.php . I even removed it and uploaded my backup file on to the server from the FTP.

It still shows the same error. People on WordPress forum do not know what exactly needs to be done.

Please help as it is on my clients live website.

Parse error: syntax error, unexpected T_VARIABLE in /home/content/90/10424790/html/waytofabulous/wp-content/themes/custom/functions.php on line 1

First 10 lines of code :

  <?php

if ( ! isset( $content_width ) )
    $content_width = 604;

require get_template_directory() . '/inc/custom-header.php';

if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) )
    require get_template_directory() . '/inc/back-compat.php';
?>
7
  • What does that line contain? Commented Nov 13, 2013 at 5:42
  • Atleast post the sample code Commented Nov 13, 2013 at 5:42
  • There is no bug in my code as i can see it on my php editor..how do i paste the whole code? Commented Nov 13, 2013 at 5:43
  • You need to post the line of code not the Error text Commented Nov 13, 2013 at 5:44
  • I think you miss ; after php statement Commented Nov 13, 2013 at 5:44

1 Answer 1

1

Please remove spaces before <?php tag

if ( ! isset( $content_width ) )
    $content_width = 604;

require get_template_directory() . '/inc/custom-header.php';

if ( version_compare( $GLOBALS['wp_version'], '3.6-alpha', '<' ) )
    require get_template_directory() . '/inc/back-compat.php';
?>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.