Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Enqueue Main Stylesheet Using wp_enqueue_style For WP Coding Standards #285

Merged
merged 2 commits into from
Mar 26, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
} else {
echo wp_title( ' | ', 'false', 'right' ); bloginfo( 'name' );
} ?></title>

<link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/foundation.css" />

<link rel="icon" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/icons/favicon.ico" type="image/x-icon">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/icons/apple-touch-icon-144x144-precomposed.png">
Expand Down Expand Up @@ -55,4 +53,4 @@
<?php get_template_part('parts/top-bar'); ?>

<section class="container" role="document">
<?php do_action('foundationPress_after_header'); ?>
<?php do_action('foundationPress_after_header'); ?>
5 changes: 4 additions & 1 deletion library/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

if (!function_exists('FoundationPress_scripts')) :
function FoundationPress_scripts() {

// Enqueue Main Stylesheet
wp_enqueue_style( 'Main Stylesheet', get_stylesheet_directory_uri() . '/css/foundation.css' );

// Deregister the jquery version bundled with wordpress
wp_deregister_script( 'jquery' );
Expand Down Expand Up @@ -33,4 +36,4 @@ function FoundationPress_scripts() {
add_action( 'wp_enqueue_scripts', 'FoundationPress_scripts' );
endif;

?>
?>