Support » Theme: Twenty Seventeen » random saving errors

  • I’ve created a twentyseventeen child theme and a functions.php so I could change the Frontpage Section Content from 4 to 6 Sections. This works except now I have problems saving and updating – when updating pages it doesn’t always return to the page, instead I just get a whitepage although it does save my changes. Also, the Customize feature sometimes won’t save changes – like options changes and such. The only thing that happened before this started was my addition to the functions.php in my child theme. This is the code:
    <?php
    add_action( ‘wp_enqueue_scripts’, ‘my_theme_enqueue_styles’ );
    function my_theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    }
    ?>
    <?php
    function wpc_custom_front_sections( $num_sections )
    {
    return 6; //Change this number to change the number of the sections.
    }
    add_filter( ‘twentyseventeen_front_page_sections’, ‘wpc_custom_front_sections’ );
    ?>

  • The topic ‘random saving errors’ is closed to new replies.