Editing Footer Credit – Parse Error in functions.php

Community Forums Forums Design Tips and Tricks Editing Footer Credit – Parse Error in functions.php

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  SoZo 1 year, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #15192

    MM
    Participant
    Post count: 128

    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 &copy; ‘;
    echo date(‘Y’);
    echo ‘ &middot; <a href=”http://mydomain.com”>My Custom Link</a> &middot; Built on the <a href=”http://www.studiopress.com/themes/genesis” title=”Genesis Framework”>Genesis Framework</a>’;
    echo ‘</p></div>’;
    }

     

     

    #15200

    SoZo
    Moderator
    Post count: 1573

    Make sure all your quotes are plain quotes


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

    #15205

    MM
    Participant
    Post count: 128
    This reply has been marked as private.
    #15209

    SoZo
    Moderator
    Post count: 1573

    See here


    John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.