Community Forums › Forums › Archived Forums › General Discussion › Site disabled
Tagged: functions.php
- This topic has 1 reply, 1 voice, and was last updated 9 years, 6 months ago by FrankMoher.
-
AuthorPosts
-
September 9, 2014 at 6:39 pm #123670FrankMoherMember
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() )
http://escript.ws
genesis_widget_area( 'before-content', array(
'before' => '<div class="before-content widget-area">',567 490 552
'after' => '</div>',
) );
}September 9, 2014 at 8:39 pm #123679FrankMoherMemberProblem fixed.
Frank
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.