esc_html__( 'Primary Menu', 'authentic' ),
) );
/*
* Switch default core markup for search form, comment form, and comments
* to output valid HTML5.
*/
add_theme_support( 'html5', array(
'search-form', 'comment-form', 'comment-list', 'gallery', 'caption',
) );
// Add default posts and comments RSS feed links to head.
add_theme_support( 'automatic-feed-links' );
/*
* Let WordPress manage the document title.
* By adding theme support, we declare that this theme does not use a
* hard-coded
tag in the document head, and expect WordPress to
* provide it for us.
*/
add_theme_support( 'title-tag' );
/*
* Enable support for Post Thumbnails.
* See https://codex.wordpress.org/Function_Reference/add_theme_support
*/
add_theme_support( 'post-thumbnails' );
add_image_size('authentic-blog-thumbnails', 1000, 500, true);
}
endif; // authentic_setup
add_action( 'after_setup_theme', 'authentic_setup' );
/**
* Enqueue scripts and styles.
*/
function authentic_scripts() {
wp_enqueue_style( 'authentic-bootstrap', get_template_directory_uri() . '/css/bootstrap.css' );
wp_enqueue_style( 'authentic-fontawesome', get_template_directory_uri() . '/css/font-awesome.css' );
wp_enqueue_style( 'authentic_css', get_template_directory_uri() . '/css/style.css');
wp_enqueue_style( 'authentic-style', get_stylesheet_uri() );
wp_enqueue_script( 'authentic-bootstrap-js', get_template_directory_uri() . '/js/bootstrap.js', array('jquery'), '20120206', true );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
}
add_action( 'wp_enqueue_scripts', 'authentic_scripts' );
function authentic_widgets_init() {
register_sidebar( array(
'name' => esc_html__( 'Sidebar', 'authentic' ),
'id' => 'sidebar-1',
'description' => '',
'before_widget' => '',
'before_title' => '',
) );
}
add_action( 'widgets_init', 'authentic_widgets_init' );
//widgets
if ( function_exists('register_sidebar') )
//about
register_sidebar(array(
'name'=>'About',
'before_title' => '',
));
//search
register_sidebar(array(
'name'=>'search',
'before_title' => '',
));
//remove dots from the excerp
function custom_excerpt_more( $more ) {
return '';//you can change this to whatever you want
}
add_filter( 'excerpt_more', 'custom_excerpt_more' );
/* Add Placehoder in comment Form Field (Comment) */
add_filter( 'comment_form_defaults', 'authentic_textarea_placeholder' );
function authentic_textarea_placeholder( $fields )
{
$fields['comment_field'] = str_replace(
'