April 18, 2013 at 9:58 pm #36300
I’m new to the forum. While attempting to add a favicon code snippet to my functions.php, I am receiving this error.
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/classy4/public_html/wp-content/themes/blissful/functions.php on line 15
functions.php looks like this…
/** Start the engine **/
require_once( TEMPLATEPATH . ‘/lib/init.php’ );
/** Child theme (do not remove) */
define( ‘CHILD_THEME_NAME’, ‘Blissful Theme’ );
define( ‘CHILD_THEME_URL’, ‘http://www.studiopress.com/themes/blissful’ );
/** Add support for custom background */
/** Add support for custom header */
add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 960, ‘height’ => 120 ) );
/** Unregister 3-column site layouts */
genesis_unregister_layout( ‘content-sidebar-sidebar’ );
genesis_unregister_layout( ‘sidebar-sidebar-content’ );
genesis_unregister_layout( ‘sidebar-content-sidebar’ );
/** Add support for 3-column footer widgets */
add_theme_support( ‘genesis-footer-widgets’, 3 );
/** Add new image sizes */
add_image_size( ‘mini-thumbnail’, 75, 75, TRUE );
add_image_size( ‘small-thumbnail’, 110, 110, TRUE );
/** Reposition the Primary Navigation */
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
Can anyone please tell me what I’m missing? I have erased the code snippet I added and perhaps I erased something I shouldn’t have. I am really new to all of this and still learning so any help would be greatly appreciated!
Malloryhttp://classyclutter.netApril 18, 2013 at 10:03 pm #36302
Download that file from your server and keep a copy on your local pc.
Upload a new copy of that file to your child themes folder.
You may have copied and pasted the code in your WordPress theme editor which can change the code so it doesn't work.
Best to copy the raw view of the code and paste it directly into the file using a text editor like Notepad++.
You can grab a new copy your functions.php file from a fresh download of the theme (if its the latest version) or a backup of the theme.
Brad Dalton has written 1961 Genesis tutorials & 4000+ Code Snippets .April 18, 2013 at 10:18 pm #36305
I have redownloaded the theme but I don't see where I can grab a new copy of the functions.php file?
The theme is the Blissful theme from studiopress.April 18, 2013 at 10:22 pm #36307
Found it! I have replaced the functions.php with the newly downloaded one and I am still receiving the error... (?)April 18, 2013 at 10:36 pm #36311
For those having similar issues. The trick that finally worked was...I went into filezilla and renamed my functions.php to functions_hold.php then uploaded a newly downloaded functions.php from my theme folder.June 15, 2013 at 3:02 pm #46150
Had a similar issue. Classyclutter..... thank you. Tried your method and it worked great!
You must be logged in to reply to this topic.