Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Can’t Log In to My Website and White Screen Only on Website

$
0
0

Replies: 0

I updated a theme functions.php file and my whole site crashed. I have searched the forum for help and have spent hours chatting with GoDaddy on this, to no avail. My site has simply “disappeared” so to speak. Can’t log in on the WordPress log-in panel. In fact, the log-in panel won’t even come up at all for me. Everything is GONE! All was fine until I messed with that php file. (Child theme php file)

I deleted the part of the code where it says:(I was trying to delete the image above each post) and my site, log-in ability, etc. has been dead ever since!
/** Add custom field above post title */
add_action( ‘genesis_before_post_title’, ‘luscious_post_image’, 8 );
function luscious_post_image() {

if ( is_page() )
return;

if ( $image = genesis_get_image( ‘format=url&size=post-photo’ ) ) {
printf( ‘%s‘, get_permalink(), $image, the_title_attribute( ‘echo=0’ ) );
}

Here is the code in its entirely:
<?php
/** Start the engine */
require_once( get_template_directory() . ‘/lib/init.php’ );

/** Child theme (do not remove) */
define( ‘CHILD_THEME_NAME’, ‘Luscious Child Theme’ );
define( ‘CHILD_THEME_URL’, ‘http://www.studiopress.com/themes/luscious’ );

/** Add new image sizes */
add_image_size( ‘post-photo’, 949, 349, true );

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

/** Add support for custom header */
add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 949, ‘height’ => 349 ) );

/** Reposition the primary navigation */
remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
add_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );

<?php
/** Start the engine */
require_once( get_template_directory() . ‘/lib/init.php’ );

/** Child theme (do not remove) */
define( ‘CHILD_THEME_NAME’, ‘Luscious Child Theme’ );
define( ‘CHILD_THEME_URL’, ‘http://www.studiopress.com/themes/luscious’ );

/** Add new image sizes */
add_image_size( ‘post-photo’, 949, 349, true );

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

/** Add support for custom header */
add_theme_support( ‘genesis-custom-header’, array( ‘width’ => 949, ‘height’ => 349 ) );

/** Reposition the primary navigation */
remove_action( ‘genesis_after_header’, ‘genesis_do_subnav’ );
add_action( ‘genesis_before_header’, ‘genesis_do_subnav’ );

/** Add custom field above post title */
add_action( ‘genesis_before_post_title’, ‘luscious_post_image’, 8 );
function luscious_post_image() {

if ( is_page() )
return;

if ( $image = genesis_get_image( ‘format=url&size=post-photo’ ) ) {
printf( ‘%s‘, get_permalink(), $image, the_title_attribute( ‘echo=0’ ) );
}

}

/** Add date block before post title */
add_action( ‘genesis_before_post_title’, ‘custom_post_date’ );
function custom_post_date() {

if ( ! is_page() ) {
echo ‘<div class=”post-date”>’;
echo do_shortcode( ‘[post_date format=”M j”]’ );
echo ‘</div><!– end .post-date –>’;
}

}

/** Customize the post info function */
add_filter( ‘genesis_post_info’, ‘post_info_filter’ );
function post_info_filter( $post_info ) {

if ( ! is_page() ) {
return ‘By [post_author_posts_link] · [post_comments] [post_edit]’;
}

return $post_info;

}

/** Customize the post meta function */
add_filter(‘genesis_post_meta’, ‘post_meta_filter’);
function post_meta_filter($post_meta) {

if ( ! is_page() ) {
return ‘[post_categories before=”Filed Under: “] · [post_tags before=”Tagged: “]’;
}

return $post_meta;

}

/** Add support for 4-column footer widgets */
add_theme_support( ‘genesis-footer-widgets’, 4 );


Viewing all articles
Browse latest Browse all 67836

Trending Articles