• Resolved shadeusawp

    (@shadeusawp)


    So this all began with the need to post my comm 100 chat script into my header using the twenty thirteen theme. While searching for ways to implement this I came across a solution someone else had for adding a custom code to the editor. I copied the new code and replaced the original code in the (function.php) file. The ORIGINAL code (which i replaced with the custom pre-written code) is as follows (as i copied it into notepad for insurance purposes):

    function twentythirteen_widgets_init() {
    	register_sidebar( array(
    		'name'          => __( 'Main Widget Area', 'twentythirteen' ),
    		'id'            => 'sidebar-1',
    		'description'   => __( 'Appears in the footer section of the site.', 'twentythirteen' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );
    
    	register_sidebar( array(
    		'name'          => __( 'Secondary Widget Area', 'twentythirteen' ),
    		'id'            => 'sidebar-2',
    		'description'   => __( 'Appears on posts and pages in the sidebar.', 'twentythirteen' ),
    		'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    		'after_widget'  => '</aside>',
    		'before_title'  => '<h3 class="widget-title">',
    		'after_title'   => '</h3>',
    	) );
    }
    add_action( 'widgets_init', 'twentythirteen_widgets_init' );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    – Now I am familiar with the ramifications of missing the slightest of errors such as a missing ‘/’ and I made sure to check the placing of the code I was replacing. HOWEVER, I went a tad further and posted the chat script WITHIN the above (at this point, modified/custom) code. Which is when the white screen of death ensued. After troubleshooting, I went through my ftp manager and just deleted the theme which gave me my site back, a much less attractive version mind you.
    I have since attempted re-adding the theme in hopes of restoring the funtion.php file and after adding the twenty thirteen theme again, the result is currently ‘500 – internal server error’.
    Rather than make this wound bleed more any attention is greatly appreciated. Let me know if you need additional info to help me resolve this. Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Do not edit the theme itself. First create a child theme for your changes. Re-upload a fresh, unpacked, copy of the Twenty Thirteen folder to wp-content/themes using FTP or whatever file management application your host provides.
    http://wordpress.org/themes/twentythirteen

    Thread Starter shadeusawp

    (@shadeusawp)

    Do not edit the theme itself. First create a child theme for your changes. Re-upload a fresh, unpacked, copy of the Twenty Thirteen folder to wp-content/themes using FTP or whatever file management application your host provides.
    http://wordpress.org/themes/twentythirteen

    thank you very much. currently no white death or 500 error. Just figuring out the details to finish the child theme. Do you by chance know what is entirely NECESSARY to finish the child theme? I have the parent twentythriteen installed, i have the child directory, and the style.css file with the required initial code copied and pasted within the style.css file. Is the last couple details just changing the ‘examples’ to specifics?

    /*
     Theme Name:     Twenty Fourteen Child
     Theme URI:      http://example.com/twenty-fourteen-child/
     Description:    Twenty Fourteen Child Theme
     Author:         John Doe
     Author URI:     http://example.com
     Template:       twentyfourteen
     Version:        1.0.0
    */
    
    @import url("../twentyfourteen/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    Try:

    /*
     Theme Name:     Twenty Thirteen Child
     Theme URI:      http://example.com/twenty-thirteen-child/
     Description:    Twenty Thirteen Child Theme
     Author:         John Doe
     Author URI:     http://example.com
     Template:       twentythirteen
     Version:        1.0.0
    */
    
    @import url("../twentythirteen/style.css");
    
    /* =Theme customization starts here
    -------------------------------------------------------------- */

    Thread Starter shadeusawp

    (@shadeusawp)

    esmi, thank you so mcuh for your help. I have my site back 😀

    Excellent! Glad I could help. 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘White screen of death to 500 internal server error’ is closed to new replies.