ciao @lamorfini, stai parlando di qualcosa inerente WordPress?
si perché ho fatto un tema con bootstrap 3 , ora vorrei provare se la versione bootstrap 4 ha qualcosa di diverso.. e se devo aggiornare il mio tema.
comunque io scarico qui:
http://getbootstrap.com/customize/
però per la 4 dove è ?
Grazie mille e buona serata.
qui dicono di usare:
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/css/bootstrap.min.css" integrity="sha384-2hfp1SzUoho7/TsGGGDaFdsuuDL0LX2hnUp6VkX3CUQ2K4K+xjboZdsXyp4oUHZj" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.4/js/bootstrap.min.js" integrity="sha384-VjEeINv9OSwtWFLAtmc4JCtEJXXBub00gtSnszmspDLCtC0I4z4nqz7rEFbIZLLU" crossorigin="anonymous"></script>
il mio codice è cosi:
/* Include Styles and script
/* ------------------------------------ */
if ( ! function_exists( 'sito_style_and_scripts' ) ) {
function sito_style_and_scripts() {
// inizio bootstrap
wp_enqueue_style('bootstrap-main', get_template_directory_uri(). '/bootstrap/css/bootstrap.min.css');
wp_enqueue_style('bootstrap-theme', get_template_directory_uri(). '/bootstrap/css/bootstrap-theme.min.css');
// inzio codice jquery
if (!is_admin()) {
wp_deregister_script('jquery');
wp_register_script('jquery', includes_url('/js/jquery/jquery.js'), array(), false, true);
wp_enqueue_script('jquery');
wp_register_script( 'bootstrap-script', get_template_directory_uri() . '/bootstrap/js/bootstrap.min.js', array( 'jquery' ),false, true );
wp_enqueue_script('bootstrap-script');
}
// fine codice jquery
// inizio stili personali
wp_enqueue_style('sito', get_template_directory_uri().'/style.css');
wp_enqueue_style('sito-master', get_template_directory_uri().'/css/master.css');
wp_enqueue_style('sito-f', get_template_directory_uri().'/css/f.css');
wp_enqueue_style('sito-pages', get_template_directory_uri().'/css/pages.css');
wp_enqueue_style('sito-mobile', get_template_directory_uri().'/css/mobile.css');
wp_enqueue_style('sito-wordpress', get_template_directory_uri().'/css/wordpress.css');
// fine stili personali
}
}
add_action( 'wp_enqueue_scripts', 'sito_style_and_scripts' );
come includo le cdn per ora ho sempre usato i file locali.. per inserire i file online come devo fare?
grazie mille e buona notte e ci sentiamo domani.