• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Editing Footer Credit – Parse Error in functions.php

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

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

This topic is: resolved

Tagged: credit, Eleven40, error, footer, parse

  • This topic has 3 replies, 2 voices, and was last updated 10 years, 2 months ago by SoZo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 26, 2013 at 5:51 pm #15192
    MM
    Member

    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>';
    }

     

     

    January 26, 2013 at 6:01 pm #15200
    SoZo
    Member

    Make sure all your quotes are plain quotes


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

    January 26, 2013 at 6:08 pm #15205
    MM
    Member
    This reply has been marked as private.
    January 26, 2013 at 6:09 pm #15209
    SoZo
    Member

    See here


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

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble