• 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

Site disabled

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 › Site disabled

This topic is: resolved

Tagged: functions.php

  • This topic has 1 reply, 1 voice, and was last updated 8 years, 4 months ago by FrankMoher.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • September 9, 2014 at 6:39 pm #123670
    FrankMoher
    Member

    I have been attempting to fix a problem with the footers on my site (http://escript.ws, using the Expose theme). I replaced the code in the functions.php file, as suggested by Studio Press support, but that did not fix the problem. I put the original code back in, and now the site is completely disabled and returning this parse error:

    Parse error: syntax error, unexpected T_LNUMBER, expecting ')' in /home/framoh/escript.ws/wp-content/themes/expose/functions.php on line 108

    The functions.php code is below. Can anyone identify what the problem might be, and advise on how to fix it?

    Thanks,

    Frank

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

    // Child theme library
    require_once(CHILD_DIR.'/lib/custom-header.php');

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

    // Add support for custom background
    if ( function_exists('add_custom_background') ) {
    add_custom_background();
    }

    // Add new image sizes
    add_image_size('Featured', 280, 150, TRUE);

    // Force layout on homepage
    add_filter('genesis_pre_get_option_site_layout', 'expose_home_layout');
    function expose_home_layout($opt) {
    if ( is_home() )
    $opt = 'full-width-content';
    return $opt;
    }

    /** Customize the post info function */
    add_filter( 'genesis_post_info', 'post_info_filter' );
    function post_info_filter($post_info) {
    if (!is_page()) {
    $post_info = '[post_comments] [post_edit]';
    return $post_info;
    }}

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

    // Remove post info and post meta sections on home page
    add_action('get_header', 'remove_post_info');
    function remove_post_info() {
    if ( is_front_page() )
    remove_action('genesis_before_post_content', 'genesis_post_info');
    }
    add_action('get_header', 'remove_post_meta');
    function remove_post_meta() {
    if ( is_front_page() )
    remove_action('genesis_after_post_content', 'genesis_post_meta');
    }

    // remove this please
    // Add widgeted footer section
    add_action('genesis_before_footer', 'agentpress_include_footer_widgets');
    function agentpress_include_footer_widgets() {
    require_once(CHILD_DIR . '/footer-widgeted.php');
    }

    // Customize the footer section
    add_filter('genesis_footer_creds_text', 'expose_footer_creds_text');
    function expose_footer_creds_text($creds) {
    $creds = __('Copyright', 'genesis') . ' [footer_copyright] [footer_childtheme_link] '. __('on', 'expose') .' [footer_genesis_link] · [footer_wordpress_link] · [footer_loginout]';
    return $creds;
    }

    // Custom text to display when no comments exist on a post
    add_filter('genesis_no_comments_text', 'expose_no_comments_text');
    function expose_no_comments_text() {
    return '<h3>Comments</h3><div class="no-comments">There are currently no comments on this post, be the first by filling out the form below.</div>';
    }

    // Register widget areas

    // remove these too
    genesis_register_sidebar(array(
    'name'=>'Footer #1',
    'id' => 'footer-1',
    'description' => 'This is the first column of the footer section.',
    'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
    ));
    genesis_register_sidebar(array(
    'name'=>'Footer #2',
    'id' => 'footer-2',
    'description' => 'This is the second column of the footer section.',
    'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
    ));
    genesis_register_sidebar(array(
    'name'=>'Footer #3',
    'id' => 'footer-3',
    'description' => 'This is the third column of the footer section.',
    'before_title'=>'<h4 class="widgettitle">','after_title'=>'</h4>'
    ));

    //* Register before content widget area
    genesis_register_sidebar( array(
    'id' => 'genesis_entry_header',
    'name' => __( 'Before Content', 'expose' ),
    'description' => __( 'This widget is before the content', 'expose' ),
    ) );

    //* Hook before content widget area
    add_action( 'genesis_entry_header', 'expose_before_content');
    function expose_before_content() {

    if ( is_front_page() )
    genesis_widget_area( 'before-content', array(
    'before' => '<div class="before-content widget-area">',567 490 552
    'after' => '</div>',
    ) );
    }

    http://escript.ws
    September 9, 2014 at 8:39 pm #123679
    FrankMoher
    Member

    Problem fixed.

    Frank

  • 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