Community Forums › Forums › Archived Forums › General Discussion › Help!
- This topic has 12 replies, 2 voices, and was last updated 10 years, 4 months ago by nutsandbolts.
-
AuthorPosts
-
December 1, 2013 at 12:26 pm #76457judith8686Member
I seem to have done what many have done! Was trying to do something in my php files.... now my site gets this error
Parse error: syntax error, unexpected '<' in /homepages/42/d419326240/htdocs/wp-content/themes/lifestyle-pro/functions.php on line 107
Ive noticed that other people have had this and and fixed it but I havent a clue!
http://judithlewis.co.ukDecember 1, 2013 at 12:32 pm #76458judith8686MemberI know what ive done wrong, just cant get into my functions php to change it, i use 1and1 to host any idea how to access my files there?
December 1, 2013 at 12:56 pm #76460nutsandboltsMemberYou'll need to login into their control panel or access your files via FTP. Navigate to htdocs/wp-content/themes/lifestyle-pro/ and you can edit the functions file that way to remove whatever you put in. Once you do that, you should be able to access your WP dashboard again.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 1, 2013 at 1:08 pm #76464judith8686MemberHoorayyy im back on! Thanks x
December 1, 2013 at 1:09 pm #76465judith8686MemberAlthough my site has changed ;-/
December 1, 2013 at 1:09 pm #76466nutsandboltsMemberWhat has changed? I wasn't able to see it before. There may be a function missing if you accidentally removed too much.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 1, 2013 at 1:14 pm #76469judith8686MemberThe total layout ...it looks like this now
December 1, 2013 at 1:14 pm #76470nutsandboltsMemberYes, I see how it looks now but I don't know what it looked like before, so I'm not sure what's missing. Can you paste in your functions.php?
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 1, 2013 at 1:20 pm #76471judith8686MemberI downloaded it, saw the error made, deleted it, saved the file and uploaded it.... clicking on the file i uploaded now shows this
<?php
//* Start the engine
include_once( get_template_directory() . '/lib/init.php' );//* Set Localization (do not remove)
load_child_theme_textdomain( 'lifestyle', apply_filters( 'child_theme_textdomain', get_stylesheet_directory() . '/languages', 'lifestyle' ) );//* Child theme (do not remove)
define( 'CHILD_THEME_NAME', __( 'Lifestyle Pro Theme', 'lifestyle' ) );
define( 'CHILD_THEME_URL', 'http://my.studiopress.com/themes/lifestyle/' );
define( 'CHILD_THEME_VERSION', '3.0.0' );//* Add HTML5 markup structure
add_theme_support( 'html5' );//* Add viewport meta tag for mobile browsers
add_theme_support( 'genesis-responsive-viewport' );//* Enqueue Droid Sans and Roboto Slab Google fonts
add_action( 'wp_enqueue_scripts', 'lifestyle_google_fonts' );
function lifestyle_google_fonts() {wp_enqueue_style( 'google-fonts', '//fonts.googleapis.com/css?family=Droid+Sans:400,700|Roboto+Slab:400,300,700', array(), CHILD_THEME_VERSION );
}
//* Add new image sizes
add_image_size( 'home-large', 634, 360, TRUE );
add_image_size( 'home-small', 266, 160, TRUE );//* Add support for custom background
add_theme_support( 'custom-background', array(
'default-image' => get_stylesheet_directory_uri() . '/images/bg.png',
'default-color' => 'efefe9',
) );//* Add support for custom header
add_theme_support( 'custom-header', array(
'header_image' => '',
'header-selector' => '.site-title a',
'header-text' => false,
'height' => 200,
'width' => 1140,
) );//* Add support for additional color style options
add_theme_support( 'genesis-style-selector', array(
'lifestyle-pro-blue' => __( 'Lifestyle Pro Blue', 'lifestyle' ),
'lifestyle-pro-green' => __( 'Lifestyle Pro Green', 'lifestyle' ),
'lifestyle-pro-mustard' => __( 'Lifestyle Pro Mustard', 'lifestyle' ),
'lifestyle-pro-purple' => __( 'Lifestyle Pro Purple', 'lifestyle' ),
'lifestyle-pro-red' => __( 'Lifestyle Pro Red', 'lifestyle' ),) );
//* Add support for 3-column footer widgets
add_theme_support( 'genesis-footer-widgets', 3 );//* Reposition the primary navigation
remove_action( 'genesis_after_header', 'genesis_do_nav' );
add_action( 'genesis_before_header', 'genesis_do_nav' );//* Modify the size of the Gravatar in the author box
add_filter( 'genesis_author_box_gravatar_size', 'lifestyle_author_box_gravatar' );
function lifestyle_author_box_gravatar( $size ) {return 96;
}
//* Modify the size of the Gravatar in the entry comments
add_filter( 'genesis_comment_list_args', 'lifestyle_comments_gravatar' );
function lifestyle_comments_gravatar( $args ) {$args['avatar_size'] = 60;
return $args;}
//* Register widget areas
genesis_register_sidebar( array(
'id' => 'home-top',
'name' => __( 'Home - Top', 'lifestyle' ),
'description' => __( 'This is the top section of the homepage.', 'lifestyle' ),
) );
genesis_register_sidebar( array(
'id' => 'home-middle',
'name' => __( 'Home - Middle', 'lifestyle' ),
'description' => __( 'This is the middle section of the homepage.', 'lifestyle' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-left',
'name' => __( 'Home - Bottom Left', 'lifestyle' ),
'description' => __( 'This is the bottom left section of the homepage.', 'lifestyle' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-right',
'name' => __( 'Home - Bottom Right', 'lifestyle' ),
'description' => __( 'This is the bottom right section of the homepage.', 'lifestyle' ),
) );add_action('wp_head', 'add_google_rel_author');
function add_google_rel_author() {
echo '<link rel="author" href="https://plus.google.com/u/0/100607045898385666733/posts" />';
}December 1, 2013 at 1:22 pm #76472nutsandboltsMemberIt looks like your sidebar is missing - try going to your Genesis theme settings, choosing content/sidebar layout again, and saving. You may also need to check in Appearance > Widgets to make sure everything is still in the right place.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 1, 2013 at 1:31 pm #76475judith8686MemberGutted, my header is gone too.... thinking it might be easier to just start from scratch!
December 1, 2013 at 1:38 pm #76476judith8686MemberCan anyone tell me how I can just start again? Ive completely messed up all of my files. Most of my options have gone in customize appearance
December 1, 2013 at 1:42 pm #76480nutsandboltsMemberYou can delete the child theme and upload it again if you want to start from scratch.
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+ -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.