Skip to content

Commit

Permalink
Fixed <main> layout, removed block.css in favor of own styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
apzeero committed May 12, 2019
1 parent 6fed684 commit 1925fbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$org_year = get_option('teamwpugph_org_year', '');

?>
</main>
</div></main>
<!-- #main-content -->

<footer id="colophon" class="site-footer uk-section uk-section-default uk-section-small">
Expand Down
5 changes: 1 addition & 4 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,23 +168,20 @@ function teamwpugph_scripts() {
if (defined('WP_DEBUG') && true === WP_DEBUG) {

$mainstyles = '/site.css';
$blockstyles = '/css/blocks.css';


$uikitjs = '/lib/uikit/dist/js/uikit.js';
$uikiticonsjs = '/lib/uikit/dist/js/uikit-icons.js';

} else {

$mainstyles = '/site.min.css';
$blockstyles = '/css/blocks.css';

$uikitjs = '/lib/uikit/dist/js/uikit.min.js';
$uikiticonsjs = '/lib/uikit/dist/js/uikit-icons.min.js';

}

wp_enqueue_style( 'teamwpugph-style', get_stylesheet_directory_uri() . $mainstyles );
wp_enqueue_style( 'teamwpugph-blocks-style', get_stylesheet_directory_uri() . $blockstyles );
wp_enqueue_style( 'teamwpugph-fonts', teamwpugph_fonts_url() );

wp_enqueue_script( 'uikit', get_stylesheet_directory_uri() . $uikitjs, array(), '3.1.2', false );
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
</header>
<!--/HEADER-->

<main id="main-content">
<main id="main-content" class="uk-section uk-padding-remove-vertical"><div class="uk-container">

0 comments on commit 1925fbe

Please sign in to comment.