• Like an idiot I went and edited the functions.php to my vantage theme. I added a couple of lines. Hit the update button and I got this error: Parse error: syntax error, unexpected ‘<‘ in …/wp-content/themes/vantage/functions.php on line 384

    The problem is there is no lone 384 it stops at line 382. My entire site is now down now.

    Here’s the last several lines of the php…

    /**
     * Get the site width.
     *
     * @return int The side width in pixels.
     */
    function vantage_get_site_width(){
    	return apply_filters('vantage_site_width', !empty($GLOBALS['vantage_site_width']) ? $GLOBALS['vantage_site_width'] : 1080);
    }
    
    /**
     * Add the responsive header
     */
    function vantage_responsive_header(){
    	if( siteorigin_setting('layout_responsive') ) {
    		?><meta name="viewport" content="width=device-width, initial-scale=1" /><?php
    	}
    	else {
    		?><meta name="viewport" content="width=1280" /><?php
    	}
    }
    add_action('wp_head', 'vantage_responsive_header');
Viewing 1 replies (of 1 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    Hi AbulletAway

    Download a fresh copy of your theme and re-upload the functions.php file by using FTP or whatever file management application your host provides.

Viewing 1 replies (of 1 total)
  • The topic ‘Parse error on a line that doesn't exist.’ is closed to new replies.