47 lines
1.1 KiB
PHP
47 lines
1.1 KiB
PHP
<?php
|
|
add_theme_support( 'automatic-feed-links' );
|
|
add_theme_support( 'menus' );
|
|
add_theme_support( 'post-thumbnails' );
|
|
|
|
// Register Custom Navigation Walker
|
|
// require_once('wp-bootstrap-navwalker.php');
|
|
|
|
if ( function_exists('register_sidebar') ) {
|
|
register_sidebar(array(
|
|
'before_widget' => '',
|
|
'after_widget' => '',
|
|
'before_title' => '<h4 class="widgettitle">',
|
|
'after_title' => '</h4>',
|
|
));
|
|
}
|
|
|
|
register_sidebar(array(
|
|
'name'=> 'Main Sidebar',
|
|
'id' => 'main_sidebar',
|
|
'before_widget' => '',
|
|
'after_widget' => '<div class="thickdivide-side"></div>',
|
|
'before_title' => '<h3 class="title">',
|
|
'after_title' => '</h3>',
|
|
));
|
|
|
|
/* ACF */
|
|
if( function_exists('acf_add_options_page') ) {
|
|
|
|
acf_add_options_page(array(
|
|
'page_title' => 'General Options',
|
|
'menu_title' => 'General Options',
|
|
'menu_slug' => 'theme-general-options',
|
|
'capability' => 'edit_posts',
|
|
'redirect' => false
|
|
));
|
|
|
|
}
|
|
|
|
/* Modify the read more link on the_excerpt() */
|
|
|
|
function custom_excerpt_length( $length ) {
|
|
return 75;
|
|
}
|
|
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
|
|
|