Jump to content

Archived

This topic is now archived and is closed to further replies.

Keith Vaugh

Unterminated comment starting line 49

Recommended Posts

Keith Vaugh

Hi All

 

I moving my site to a different host (can't provide the URL yet as the old server is still online) but I am getting the following error:

 

Warning: Unterminated comment starting line 49 in /home/MYDIRECTORY/wp-content/plugins/pagelines-customize/functions.php on line 49

 

I compared the functions.php file that is on the working host with the this file and both are functioning as they should be. If I deactivated the pagelines customize plugin it causes styling errors throughout the site. The code for the file is attached hereunder

 

I'd appreciate some assistance. If you need to see the site I can provide the IP address but you'd need to modify your hosts file also

Thanks

<?php
/**
 * PageLines Customize functions.php.
 *
 * @author Simon Prosser
 */
/*
// ---- ADDING NEW TEMPLATES ---- //

	Want another page template for drag and drop? Easy :)
	1. Add File called page.[page-id].php to this folder.
	2. Add Template Name: Your Page Name to that file ( see page.base.php for an example. )
	3. Thats it! We do the rest for you!
	
// ---- ADDING NEW SECTIONS ---- //

	Adding new sections is really easy in 2.0
	1. Copy your section.[sectionname].php file into the sections folder
	2. It will be auto loaded for you.
	3. You can now enable/disable the section in the extensions menu.

// FILTERS EXAMPLE ---------//

	// The following filter will add the font  Ubuntu into the font array $thefoundry.
	// This makes the font available to the framework and the user via the admin panel.
*/
add_filter ( 'pagelines_foundry', 'my_google_font' );

function my_google_font( $thefoundry ) {
	$myfont = array( 'Ubuntu' => array(
			'name' => 'Ubuntu',
			'family' => '"Ubuntu", arial, serif',
			'web_safe' => true,
			'google' => true,
			'monospace' => false
			)
		);
	return array_merge( $thefoundry, $myfont );
}
/*
// ====================================================
// = YOUR FUNCTIONS - Where you should add your code  =
// ====================================================
*/

global $content_width;
if ( ! isset( $content_width ) )
    $content_width = 1200;
    /**

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Remove the following /** from the code below.

 

global $content_width;
if ( ! isset( $content_width ) )
    $content_width = 1200;
    /**

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Keith Vaugh

Thanks Danny. I disabled the plugin and the everything is working as should. Will try nonetheless.

Share this post


Link to post
Share on other sites
Danny

Awesome and thanks for informing us the issue has been resolved. We appreciate it.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×