Skip to content

Commit

Permalink
Add generated SVG symbols to header.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Cash committed Jan 9, 2017
1 parent 78d3dd0 commit 23150ff
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 2 additions & 0 deletions assets/images/sprites/symbols.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1" />

<title><?php wp_title('&raquo;','true','right'); ?></title>
<title><?php wp_title('&raquo;', 'true', 'right'); ?></title>

<script>
<script>
// Set up site configuration
window.config = window.config || {};
// The base URL for the WordPress theme
Expand All @@ -24,4 +24,10 @@

<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<body <?php body_class(); ?>>

<?php
// SVG Sprite for symbols. Make sure this is `display: none`!
// https://css-tricks.com/svg-sprites-use-better-icon-fonts/#article-header-id-1
readfile(get_stylesheet_directory() . '/assets/images/sprites/symbols.svg');
?>

0 comments on commit 23150ff

Please sign in to comment.