StudioPress Community Forums
  StudioPress Community Forums > Forums > General Discussion
For help and support, access to your downloads, or to manage your account please log into My StudioPress.

These forums have been set to read-only so you can browse the existing topics for any questions you may have.

For general discussion on WordPress, CSS and design (NOT for support) visit the new Community Forums.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-21-2011, 06:29 PM
mamaganda mamaganda is offline
Registered User
Genesis Member
 
Join Date: Mar 2010
Posts: 22
Default I messed up my functions.php and now my site is offline

I tried to add some code to the functions php file in the WP editor and now my website returns this message:

Fatal error: Cannot redeclare custom_comment_form_args() (previously declared in /homepages/26/d321801647/htdocs/wp-content/themes/child2011/functions.php:21) in /homepages/26/d321801647/htdocs/wp-content/themes/child2011/functions.php on line 29

here is my functions php code:

<?php
function diw_post_thumbnail_feeds($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<div>' . get_the_post_thumbnail($post->ID) . '</div>' . $content;
}
return $content;
}

add_filter('the_excerpt_rss', 'diw_post_thumbnail_feeds');
add_filter('the_content_feed', 'diw_post_thumbnail_feeds');
/** Start the engine **/
require_once(TEMPLATEPATH.'/lib/init.php');

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

Any help would be greatly appreciated!

Website address - www.wokintime.com
 

Tags
fatal error, functions, php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Build Wordpress Site Offline Leo General Discussion 2 05-01-2009 12:43 PM
Dashboard functions messed up pcmike General Discussion 6 03-13-2009 09:46 AM
offline preview of site revisions modernjoe General Discussion 2 12-28-2008 08:50 PM


All times are GMT -5. The time now is 11:14 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.