asiergogortza_theme/functions.php
2016-12-19 22:57:15 +01:00

23 lines
854 B
PHP

<?php
function asierg_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'asierg-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
function asierg_add_bootstrap() {
wp_enqueue_style('bootstrap-css', get_stylesheet_directory_uri().'/css/bootstrap.min.css');
wp_enqueue_style( 'style-css', get_stylesheet_directory_uri() . '/style.css' );
wp_enqueue_script( 'bootstrap-js', get_stylesheet_directory_uri() . '/js/bootstrap.min.js', array(), '3.0.0', true );
}
add_action( 'wp_enqueue_scripts', 'asierg_enqueue_styles' );
add_action( 'wp_enqueue_scripts', 'asierg_add_bootstrap' );
?>