Created
November 26, 2016 02:57
-
-
Save amElnagdy/9b7619653334c5d79fac812393072587 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