• 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

Parse error: syntax error…??

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 › General Discussion › Parse error: syntax error…??

This topic is: resolved

Tagged: code snippet, error, functions.php

  • This topic has 1 reply, 2 voices, and was last updated 9 years, 9 months ago by Brad Dalton.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 18, 2013 at 9:37 pm #36295
    classyclutter
    Member

    Hi!

    I'm new to the forum. While attempting to add a favicon code snippet to my functions.php, I am receiving this error.

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/classy4/public_html/wp-content/themes/blissful/functions.php on line 15

    functions.php looks like this...
    <?php
    /** Start the engine **/
    require_once( TEMPLATEPATH . '/lib/init.php' );

    /** Child theme (do not remove) */
    define( 'CHILD_THEME_NAME', 'Blissful Theme' );
    define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/blissful' );

    /** Add support for custom background */
    add_custom_background();

    /** Add support for custom header */
    add_theme_support( 'genesis-custom-header', array( 'width' => 960, 'height' => 120 ) );
    /** Unregister 3-column site layouts */
    genesis_unregister_layout( 'content-sidebar-sidebar' );
    genesis_unregister_layout( 'sidebar-sidebar-content' );
    genesis_unregister_layout( 'sidebar-content-sidebar' );

    /** Add support for 3-column footer widgets */
    add_theme_support( 'genesis-footer-widgets', 3 );

    /** Add new image sizes */
    add_image_size( 'mini-thumbnail', 75, 75, TRUE );
    add_image_size( 'small-thumbnail', 110, 110, TRUE );

    /** Reposition the Primary Navigation */
    remove_action( 'genesis_after_header', 'genesis_do_nav' );

     

     

    Can anyone please tell me what I'm missing? I have erased the code snippet I added and perhaps I erased something I shouldn't have. I am really new to all of this and still learning so any help would be greatly appreciated!

    Thank you,

    Mallory

    http://classyclutter.net
    April 18, 2013 at 10:08 pm #36303
    Brad Dalton
    Participant

    Please mark this as resolved as its a duplicate which i have already answered. Thanks.


    Get Help – Book Consultation.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘General Discussion’ 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