leoncorre_wordpress_theme/functions.php

16 lines
538 B
PHP

<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
/*
* * 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' );