Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi after editing my themes function.php file in my wordpress dashboard I received the following error:

Parse error: syntax error, unexpected T_STRING in /clientdata/apache-www/a/u/auspect.com.au/www/wp-content/themes/auspect/functions.php on line 26

In dreamweaver it is showing errors on lines 26, 30, 34, 36 and 37

The code for the functions.php page is:

<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );

/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Auspect Theme' );
define( 'CHILD_THEME_URL', 'http://www.positivebusinessonline.com' );

/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );

/** Add new image sizes */
add_image_size( 'home-bottom', 110, 110, TRUE );
add_image_size( 'home-middle-left', 280, 165, TRUE );
add_image_size( 'home-middle-right', 50, 50, TRUE );
add_image_size( 'home-tabs', 150, 220, TRUE );
add_image_size( 'slider', 450, 300, TRUE );

/** auspectize the footer section */
add_filter('genesis_footer_creds_text', 'auspect_footer_creds_text');
function auspect_footer_creds_text($creds) {
    $creds = '&copy; Copyright 2012&nbsp;Auspect&nbsp;&middot;&nbsp;<a href="http://www.seofactory.com.au" target="_blank">Website Design</a> and <a href="http://www.seofactory.com.au/seo-gold-coast/" target="_blank">SEO Gold Coast</a>&nbsp;by&nbsp;The&nbsp;SEO&nbsp;Factory</a>&nbsp;&middot;&nbsp;
    return $creds;
}
/** Google Analytics Script **/
add_action('wp_head' , 'auspect_google_analytics');
function auspect_google_analytics() { ?>
    <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-26482473-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<?php }

/** Bing Verification **/
add_action('wp_head' , 'auspect_bing');
function auspect_bing () {
    echo '<meta name="msvalidate.01" content="9FBCE475DC2E64CF5111FB6EBBFFD466" />';
}


/** Modify speak your mind text in comments */
add_filter('genesis_comment_form_args', 'auspect_comment_form_args');
function auspect_comment_form_args($args) {
    $args['title_reply'] = 'Leave a Comment';
    return $args;
}

genesis_register_sidebar( array(
    'id'            => 'home-middle-left',
    'name'          => __( 'Home Middle Left', 'auspect' ),
    'description'   => __( 'This is the home middle left section.', 'auspect' ),
) );
genesis_register_sidebar( array(
    'id'            => 'home-middle-right',
    'name'          => __( 'Home Middle Right', 'auspect' ),
    'description'   => __( 'This is the home middle right section.', 'auspect' ),
) );
genesis_register_sidebar( array(
    'id'            => 'home-bottom',
    'name'          => __( 'Home Bottom', 'auspect' ),
    'description'   => __( 'This is the home bottom section.', 'auspect' ),
) );

If someone could please help me it would be very much appreciated. :)

share|improve this question
Close-voted as too localized. This question is merely a matter of PHP syntax debugging. – Chip Bennett Jun 12 '12 at 3:32

closed as too localized by Chris_O, Chip Bennett, toscho Jun 12 '12 at 5:52

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

1 Answer

You forgot a quote at the end of

 $creds = '&copy; Copyright 2012&nbsp;Auspect&nbsp;&middot;&nbsp;<a href="http://www.seofactory.com.au" target="_blank">Website Design</a> and <a href="http://www.seofactory.com.au/seo-gold-coast/" target="_blank">SEO Gold Coast</a>&nbsp;by&nbsp;The&nbsp;SEO&nbsp;Factory</a>&nbsp;&middot;&nbsp;'
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.