This file contains hidden or 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' ); |
This file contains hidden or 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
| add_action('add_meta_boxes', 'divicolt_add_meta_box'); | |
| function divicolt_add_meta_box() | |
| { | |
| foreach (get_post_types() as $post_type) { | |
| if (post_type_supports($post_type, 'editor') and function_exists('et_single_settings_meta_box')) { | |
| $obj= get_post_type_object( $post_type ); | |
| add_meta_box('et_settings_meta_box', sprintf(__('Divi %s Settings', 'Divi'), $obj->labels->singular_name), 'et_single_settings_meta_box', $post_type, 'side', 'high'); | |
| } | |
| } | |
| } |
This file contains hidden or 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
| //Add to wp-config.php file | |
| define('DISALLOW_FILE_EDIT', true); |
This file contains hidden or 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
| // Add to your .htaccess file | |
| <Files wp-config.php> | |
| order allow,deny | |
| deny from all | |
| </Files> |
This file contains hidden or 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
| //source: https://wpcolt.com/jquery-not-defined-possible-causes-fix-wordpress/ | |
| define('CONCATENATE_SCRIPTS', false); |
This file contains hidden or 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
| <span class="updated"> '.$updated_time.'</span> |
This file contains hidden or 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
| $updated_time = get_the_modified_time('F jS, Y'); |
This file contains hidden or 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
| <span class="date updated published"><?php the_time(); ?></span> |
This file contains hidden or 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
| <span class="date updated published"><?php the_time( get_option('date_format') ); ?></span> |
This file contains hidden or 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
| <h1 class="entry-title">The title</h1> |