Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
sgssandhu committed Feb 16, 2019
1 parent 644dd17 commit 006d846
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
//Custom CSS
?>

<link defer href="https://cdn.darlic.com/wp-content/themes/aione/assets/css/aione.min.css" rel="stylesheet" media="all">
<script defer src="https://cdn.darlic.com/wp-content/themes/aione/assets/js/aione.min.js"></script>

<!-- DESIGN SETTINGS CSS START -->
<style>
<?php
Expand Down
9 changes: 9 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,13 @@ function aionetheme_content_width() {
*/
function aione_styles() {

//loaded from CDN
/*
//Enqueue core css essencial for layout in head, rest css will be loaded in footer
wp_register_style( 'core', get_template_directory_uri() . '/assets/css/core.min.css', array(), null, 'all' );
wp_enqueue_style( 'core' );
*/

// wp_deregister_style( 'wp-block-library' );
wp_dequeue_style( 'wp-block-library' );
Expand All @@ -148,10 +152,15 @@ function aione_styles() {
//add_action( 'admin_enqueue_scripts', 'aione_scripts' );

function aione_scripts() {

//loaded from CDN

/*
wp_register_style( 'aione', get_template_directory_uri() . '/assets/css/aione.min.css', array(), null, 'all' );
wp_enqueue_style( 'aione' );
wp_register_script( 'aione-js', get_template_directory_uri() . '/assets/js/aione.min.js', array(), null, true );
wp_enqueue_script( 'aione-js' );
*/

//wp_deregister_script( 'wp-embed' );
wp_dequeue_script( 'wp-embed' );
Expand Down
2 changes: 2 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@
<meta name="theme-color" content="#168dc5"/>
<link rel="profile" href="http://gmpg.org/xfn/11">

<link defer href="https://cdn.darlic.com/wp-content/themes/aione/assets/css/core.min.css" rel="stylesheet" media="all">

<!-- Headstart -->
<?php wp_head(); ?>
<!-- Headend -->
Expand Down

0 comments on commit 006d846

Please sign in to comment.