Something got screwed up in your PHP. Do you have FTP access to the offending file and can you post the contents of line 16 and preceding?
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘basic_header_image_width’, $lw_top_header_image_width ) );
define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘basic_header_image_height’, $lw_top_header_image_height ) );
// Don’t support text inside the header image.
define( ‘NO_HEADER_TEXT’, true );
// Add a way for the custom header to be styled in the admin panel that controls
// custom headers. See yourtheme_admin_header_style(), below.
add_custom_image_header( ”, ‘basic_admin_header_style’ );
// … and thus ends the changeable header business.
if ( ! function_exists( ‘basic_admin_header_style’ ) ) :
/**
* Styles the header image displayed on the Appearance > Header admin panel.
*
* Referenced via add_custom_image_header() in yourtheme_setup().
*
* @since 3.0.0
*/
function basic_admin_header_style() {
?>
<style type=”text/css”>
#headimg {
height: <?php echo HEADER_IMAGE_HEIGHT; ?>px;
width: <?php echo HEADER_IMAGE_WIDTH; ?>px;
}
#headimg h1, #headimg #desc {
display: none;
}
</style>
<?php
}
endif;
?>
— That’s what’s in the theme that I downloaded. However, I’m having trouble accessing my site through FTP so I can just tell you what I put in that I believe messed it up.
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘basic_header_image_width’, 1802px_top_header_image_width ) );
I had added the 1802px in place of $lw because I thought that was how I could change the allowed width
$lw_top_header_image_width is a variable name. If you change that, it’s going to blow up on you. If you want to set the width manually, replace:
`
define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘basic_header_image_width’, $lw_top_header_image_width ) );`
with
define( 'HEADER_IMAGE_WIDTH', 1802 );
Thanks! But, how do I do it? I get the error on every part of the Dashboard
If you don’t have FTP access, your hosting service may offer web-based tools for managing files, a la cPanel or Plesk. If you don’t have access to anything, it’s time to call tech support.
I now ge t error below:
Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web224/b2240/ipg.secretrestaurantreci/wp-config.php on line 90
Below is the end of my wp-config.php file. Line 90 is the one in bold type. What do I do to correct it?
define(‘WP_DEBUG’, false);
/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’d);
I now ge t error below:
Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web224/b2240/ipg.secretrestaurantreci/wp-config.php on line 90
Below is the end of my wp-config.php file. Line 90 is the one in bold type. What do I do to correct it?
define(‘WP_DEBUG’, false);
/* That’s all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
if ( !defined(‘ABSPATH’) )
define(‘ABSPATH’, dirname(__FILE__) . ‘/’);
/** Sets up WordPress vars and included files. */
require_once(ABSPATH . ‘wp-settings.php’d);
Hi,
I have tried to add a post but does not appear. I have viewed the site and this is what I get: Parse error: syntax error, unexpected T_STRING in /home/content/39/8861539/html/wp-content/themes/simple-catch/single.php on line 44
I have contacted my host and they said its the default.
any help.
Once I uninstall and then reinstall wordpress, I can access my admin login. But once I go to Settings, General, and edit the sub domain on the WordPress Address (URL) and Site Address (URL) and save, I get errors when I click on anything in my Dashboard and it is impossible to do anything but uninstall again. How do I get control of my site again? My other site http://www.secretrestaurantrecipessite.com woks perfectly fine, but http://www.specialtomeyouare.com/hello is broken. Please help!
I uninstalled wordpress because I kept getting the error below after trying to edit the sub domain on the WordPress Address (URL) and Site Address (URL).
Parse error: syntax error, unexpected T_STRING in /hermes/bosweb/web224/b2240/ipg.secretrestaurantreci/wp-config.php on line 90