Community Forums › Forums › Archived Forums › Design Tips and Tricks › Can someone help please – Blank white screen :(
- This topic has 3 replies, 2 voices, and was last updated 10 years, 5 months ago by Brad Dalton.
-
AuthorPosts
-
October 31, 2013 at 12:41 pm #70165gamblingjoeMember
Hello,
I'm designing a site for somebody using the Mocha theme. Everything was going well until I tried to add some code at functions.php to remove the very bottom footer.
Now the site and the admin panel is white/blank and I am unable to edit anything.
I don't have access to his FTP, but I can access the wp-admin by using the back button on my brewer. I thought I put the functions.php code back to normal, but when I click update it just shows white/blank.Can anyone help me out here? Very desperate. The site is wordpress.freecasinobonus.net
Here is the css I tried to put back if that is any use:<?php
/** Start the engine */
require_once( get_template_directory() . '/lib/init.php' );/** Child theme (do not remove) */
define( 'CHILD_THEME_NAME', 'Mocha Theme' );
define( 'CHILD_THEME_URL', 'http://www.studiopress.com/themes/mocha' );/** Create additional color style options */
add_theme_support( 'genesis-style-selector', array( 'mocha-blue' => 'Blue', 'mocha-green' => 'Green', 'mocha-orange' => 'Orange', 'mocha-pink' => 'Pink' ) );/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'mocha_add_viewport_meta_tag' );
function mocha_add_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}/** Register default layout setting */
genesis_set_default_layout( 'sidebar-content-sidebar' );/** Unregister content/sidebar layout setting */
genesis_unregister_layout( 'content-sidebar-sidebar' );
genesis_unregister_layout( 'sidebar-sidebar-content' );/** Add support for custom background */
add_custom_background();/** Add support for structural wraps */
add_theme_support( 'genesis-structural-wraps', array( 'header', 'nav', 'subnav', 'inner', 'footer-widgets', 'footer' ) );/** Customize the post info function */
add_filter( 'genesis_post_info', 'post_info_filter' );
function post_info_filter($post_info) {
if (!is_page()) {
$post_info = 'Posted on [post_date] · [post_comments] [post_edit]';
return $post_info;
}}/** Add the after post section */
add_action( 'genesis_after_post_content', 'mocha_after_post' );
function mocha_after_post() {
if ( ! is_singular( 'post' ) )
return;
genesis_widget_area( 'after-post', array(
'before' => '<div class="after-post widget-area">',
) );
}/** Add support for 3-column footer widgets */
add_theme_support( 'genesis-footer-widgets', 3 );/** Register widget areas */
genesis_register_sidebar( array(
'id' => 'after-post',
'name' => __( 'After Post', 'mocha' ),
'description' => __( 'This is the after post section.', 'mocha' ),
) );October 31, 2013 at 12:43 pm #70169Brad DaltonParticipantYou will need access to FTP or File Manager in cPanel to remove the code which caused the problem.
October 31, 2013 at 12:48 pm #70171gamblingjoeMemberThanks Brad
As he hasn't given me access to his cPanel, would you mind explaining where it would be and how he could find, then edit it?
Should I just give him the code to paste on top?Thank you
October 31, 2013 at 3:50 pm #70204Brad DaltonParticipantYou will need to navigate to the public html/wp-content/themes/yourtheme/functions.php file and remove the code you added.
Can you please link to the source of the code.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.