Community Forums › Forums › Archived Forums › Design Tips and Tricks › Editing Footer Credit – Parse Error in functions.php
- This topic has 3 replies, 2 voices, and was last updated 11 years, 10 months ago by SoZo.
-
AuthorPosts
-
January 26, 2013 at 5:51 pm #15192MMMember
Hi - can someone assist with this? I'm getting the below error:
Parse error: syntax error, unexpected '<' in /home/content/45/10351845/html/wp-content/themes/eleven40/functions.php on line 72
The code is below. I want to just change the (c) name listed and remove the other genesis links (on the eleven40 theme):
Any answers on this? Thanks !
Michael
----------------
<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'eleven40 theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/eleven40' );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'eleven40_viewport_meta_tag' );
function eleven40_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Add new image sizes */
add_image_size( 'grid-thumbnail', 270, 100, TRUE );/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array(
'eleven40-blue' => 'Blue',
'eleven40-green' => 'Green',
'eleven40-red' => 'Red'
) );/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array(
'header',
'nav',
'subnav',
'inner',
'footer-widgets',
'footer'
) );/** Add the page title section */
add_action( 'genesis_before_content_sidebar_wrap', 'eleven40_page_title' );
function eleven40_page_title() {
genesis_widget_area( 'page-title', array(
'before' => '<div class="page-title widget-area">',
) );
}/** Add the after post section */
add_action( 'genesis_after_post_content', 'eleven40_after_post' );
function eleven40_after_post() {
if ( ! is_singular( 'post' ) )
return;
genesis_widget_area( 'after-post', array(
'before' => '<div class="after-post widget-area">',
) );
}/** Add 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'page-title',
'name' => __( 'Page Title', 'eleven40' ),
'description' => __( 'This is the page title section.', 'eleven40' ),
) );
genesis_register_sidebar( array(
'id' => 'after-post',
'name' => __( 'After Post', 'eleven40' ),
'description' => __( 'This is the after post section.', 'eleven40' ),
) );/** 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 26, 2013 at 6:01 pm #15200SoZoMemberMake sure all your quotes are plain quotes
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 26, 2013 at 6:08 pm #15205MMMemberThis reply has been marked as private.January 26, 2013 at 6:09 pm #15209SoZoMember -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.