Forked from amElnagdy/2017-custom-front-page-sections
Created
January 23, 2018 01:52
-
-
Save ControlledChaos/adfdd29ac7eae635d28a5bb92c5f7335 to your computer and use it in GitHub Desktop.
A simple function to control the number of Twenty Seventeen Theme Front Page Sections by WPColt.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; //Change this number to change the number of the sections. | |
} | |
add_filter( 'twentyseventeen_front_page_sections', 'wpc_custom_front_sections' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment