Community Forums › Forums › General Discussion › HELP FAST!!! SYntax Error
This topic contains 2 replies, has 2 voices, and was last updated by sbetschel 3 months, 3 weeks ago.
-
AuthorPosts
-
January 30, 2013 at 3:24 pm #16515
i tried fixing the footer to customize it and I got a syntax error on line 106. Website is down, please help fast!
<?php
/** Start the engine */
require_once( get_template_directory() . ‘/lib/init.php’ );/** Child theme (do not remove) */
define( ‘CHILD_THEME_NAME’, ‘Education Theme’ );
define( ‘CHILD_THEME_URL’, ‘http://www.studiopress.com/themes/education’ );/** Create additional color style options */
add_theme_support( ‘genesis-style-selector’, array(
‘education-black’ => __( ‘Black’ , ‘education’ ),
‘education-green’ => __( ‘Green’ , ‘education’ ),
‘education-purple’ => __( ‘Purple’ , ‘education’ ),
‘education-red’ => __( ‘Red’ , ‘education’ ),
‘education-teal’ => __( ‘Teal’ , ‘education’ )
) );add_action( ‘genesis_meta’, ‘education_add_viewport_meta_tag’ );
/** Add Viewport meta tag for mobile browsers */
function education_add_viewport_meta_tag() {echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1.0″/>’;
}
/** Add new image sizes */
add_image_size( ‘featured-image’, 150, 100, TRUE );/** Add structural wraps */
add_theme_support( ‘genesis-structural-wraps’, array(
‘header’,
‘nav’,
‘subnav’,
‘inner’,
‘footer-widgets’,
‘footer’
) );/** Add support for custom background */
add_theme_support( ‘custom-background’ );/** Add support for custom header */
add_theme_support( ‘genesis-custom-header’, array(
‘width’ => 1140,
‘height’ => 120
) );/** Add support for 3-column footer widgets */
add_theme_support( ‘genesis-footer-widgets’, 3 );/** Reposition Primary Navigation */
remove_action( ‘genesis_after_header’, ‘genesis_do_nav’ );
add_action( ‘genesis_before_content_sidebar_wrap’, ‘genesis_do_nav’ );/** Reposition Secondary Navigation */
remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
add_action( ‘genesis_before_content_sidebar_wrap’, ‘genesis_do_subnav’ );/** Reposition Breadcrumbs */
remove_action( ‘genesis_before_loop’, ‘genesis_do_breadcrumbs’ );
add_action( ‘genesis_before_content’, ‘genesis_do_breadcrumbs’ );add_filter( ‘genesis_comment_list_args’, ‘child_comment_list_args’ );
/** Change avatar size */
function child_comment_list_args( $args ) {$args = array(
‘type’ => ‘comment’,
‘avatar_size’ => 33,
‘callback’ => ‘genesis_comment_callback’
);return $args;
}
/** Register widget areas */
genesis_register_sidebar( array(
‘id’ => ’slider’,
‘name’ => __( ‘Slider’, ‘education’ ),
‘description’ => __( ‘This is the slider section.’, ‘education’ ),
) );
genesis_register_sidebar( array(
‘id’ => ’intro’,
‘name’ => __( ‘Intro’, ‘education’ ),
‘description’ => __( ‘This is the intro section displayed below the slider.’, ‘education’ ),
) );
genesis_register_sidebar( array(
‘id’ => ’featured’,
‘name’ => __( ‘Featured’, ‘education’ ),
‘description’ => __( ‘This is the featured section displayed below the intro.’, ‘education’ ),
) );
genesis_register_sidebar( array(
‘id’ => ’call-to-action’,
‘name’ => __( ‘Call To Action’, ‘education’ ),
‘description’ => __( ‘This is the call to action banner.’, ‘education’ ),
) );/** Customize the credits */
add_filter( ‘genesis_footer_creds_text’, ‘custom_footer_creds_text’ );
function custom_footer_creds_text() {
echo ‘<div class=”creds”><p>’;
echo ‘Copyright © ‘;
echo date(‘Y’);
echo ‘ · <a href=”http://mydomain.com”>My Custom Link</a> · Built on the <a href=”http://www.studiopress.com/themes/genesis” title=”Genesis Framework”>Genesis Framework</a>’;
echo ‘</p></div>’;
}January 30, 2013 at 4:08 pm #16527I would suggest you put back the original functions.php file – either from a backup you made before making changes, or from the original theme folder – via FTP. You can probably do the customizations using the Genesis Simple Edits plugin.
Web designer and avoider of chores.
Bringing websites Up to Speed! Follow me on Twitter!January 30, 2013 at 4:18 pm #16533just did that and everything worked. thanks
-
AuthorPosts
The topic ‘HELP FAST!!! SYntax Error’ is closed to new replies.