add Thumbnails support

This commit is contained in:
Fabiano Alencar 2018-03-14 09:21:47 -03:00
parent cea714e42f
commit 4e7f74d654
1 changed files with 10 additions and 2 deletions

View File

@ -17,7 +17,7 @@ if(!function_exists('tainacan_setup')) {
show_admin_bar( false );
add_theme_support( 'html5', array( 'comment-list' ) );
add_theme_support( 'post-thumbnails' );
/**
* Desabilita o FTP na instalação de Plugins
*/
@ -29,4 +29,12 @@ add_action( 'after_setup_theme', 'tainacan_setup' );
require get_template_directory() . '/functions/enqueues.php';
require get_template_directory() . '/functions/pagination.php';
require get_template_directory() . '/functions/single-functions.php';
require get_template_directory() . '/functions/single-functions.php';
function wpdocs_excerpt_more( $more ) {
return sprintf( '<p><a class="read-more float-right" href="%1$s">%2$s</a></p>',
get_permalink( get_the_ID() ),
__( 'Read More', 'tainacan-theme' ).'...'
);
}
add_filter( 'excerpt_more', 'wpdocs_excerpt_more' );