Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix I think I broke the functions.php code… site is down

Discussion in 'Misc WordPress Requests' started by jonnayuna, Oct 11, 2017.

  1. jonnayuna

    Guest

    I think I broke the functions.php code… site is down, by jonnayuna

    I was trying to add more Page sections to the Twenty Seventeen theme. I pasted this code into the functions.php file:

    /*
    * A simple function to control the number of Twenty Seventeen Theme Front Page Sections
    * Source: wpcolt.com
    */
    function wpc_custom_front_sections( $num_sections )
    {
    return 5;
    }
    add_filter( ‘twentyseventeen_front_page_sections’, ‘wpc_custom_front_sections’ );

    It didn’t work, and the site doesn’t work now either. I also saw an extra new line with php…something, I deleted that because I thought it wasn’t supposed to be there. So now my php file starts with:

    /**
    * Twenty Seventeen functions and definitions
    *
    * @link https://developer.wordpress.org/themes/basics/theme-functions/
    *
    * @package WordPress
    * @subpackage Twenty_Seventeen
    * @since 1.0
    */

    Did I delete something that I shouldn’t have? How can I get the site up and running again? And any suggestions on why the code for an extra page section on the front page didn’t work?

    I think I broke the functions.php code… site is down
     
    #1

Share This Page

Web Hosting