• So I’m trying to properly enqueue bootstrap into Hueman by including the following into the functions.php of the being-hueman child theme:

    function theme_add_bootstrap() {
    		wp_enqueue_style( 'bootstrap-css',  get_template_directory(). '../css/bootstrap.min.css' );
    		wp_enqueue_style( 'style-css', get_template_directory() . 'style.css' );
    		wp_enqueue_script( 'bootstrap-js', get_template_directory() . '../js/bootstrap.min.js', array(), '3.0.0', true );
    		wp_enqueue_style( 'prism-css', get_template_directory() . '../css/prism.css' );
    		wp_enqueue_script( 'prism-js', get_template_directory() . '../js/prism.js', array(), '3.0.0', true );
    	}
    	
    	add_action( 'wp_enqueue_scripts', 'theme_add_bootstrap' )'

    but it requires me to copy /css and /js directories into the main theme folder in order to work, and I can seem to get the URL to point to the /css and /js folders in the child theme. Using deeper dir names (eg: /public_html/…) or FQDN’s (https://www.site.com/wp-admin/…) doesn’t work.

    Has anyone done this before, and should i simply add the css and js into a copy of headers.php in the child theme?

    Many Thanks… André

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding bootstrap to being-hueman’ is closed to new replies.