Skip to content

Commit

Permalink
Add logo as SVG instead of text for faster starting point
Browse files Browse the repository at this point in the history
  • Loading branch information
Roni Laukkarinen committed May 8, 2018
1 parent c3092da commit c7f8353
Show file tree
Hide file tree
Showing 9 changed files with 3,660 additions and 2,443 deletions.
6,073 changes: 3,642 additions & 2,431 deletions css/global.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/global.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions.php
Expand Up @@ -5,7 +5,7 @@
* @package air-light * @package air-light
*/ */


define( 'AIR_LIGHT_VERSION', '4.1.4' ); define( 'AIR_LIGHT_VERSION', '4.1.5' );


/** /**
* Requires. * Requires.
Expand Down
14 changes: 12 additions & 2 deletions header.php
Expand Up @@ -29,9 +29,19 @@


<div class="site-branding"> <div class="site-branding">
<?php if ( is_front_page() && is_home() ) : ?> <?php if ( is_front_page() && is_home() ) : ?>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?><?php // include get_theme_file_path( '/svg/logo.svg' ); ?></a></h1> <h1 class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<span class="screen-reader-text"><?php bloginfo( 'name' ); ?></span>
<?php include get_theme_file_path( '/svg/logo.svg' ); ?>
</a>
</h1>
<?php else : ?> <?php else : ?>
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?><?php // include get_theme_file_path( '/svg/logo.svg' ); ?></a></p> <p class="site-title">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
<span class="screen-reader-text"><?php bloginfo( 'name' ); ?></span>
<?php include get_theme_file_path( '/svg/logo.svg' ); ?>
</a>
</p>
<?php endif; <?php endif;


$description = get_bloginfo( 'description', 'display' ); $description = get_bloginfo( 'description', 'display' );
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{ {
"name": "air-light", "name": "air-light",
"version": "4.1.4", "version": "4.1.5",
"description": "A minimalist WordPress starter theme.", "description": "A minimalist WordPress starter theme.",
"author": "Digitoimisto Dude Oy (moro@dude.fi)", "author": "Digitoimisto Dude Oy (moro@dude.fi)",
"devDependencies": { "devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Expand Up @@ -12,7 +12,7 @@ Tags: one-column, accessibility-ready, translation-ready


Requires at least: 4.0 Requires at least: 4.0
Tested up to: 4.9.3 Tested up to: 4.9.3
Stable tag: 4.1.4 Stable tag: 4.1.5
License: MIT License License: MIT License
License URI: https://opensource.org/licenses/MIT License URI: https://opensource.org/licenses/MIT


Expand Down
4 changes: 0 additions & 4 deletions sass/layout/_site-header.scss
Expand Up @@ -29,8 +29,4 @@
a { a {
color: #111; color: #111;
} }

svg {
fill: #fff;
}
} }
2 changes: 1 addition & 1 deletion style.css
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://github.com/digitoimistodude/air-light
Author: Digitoimisto Dude Oy Author: Digitoimisto Dude Oy
Author URI: https://www.dude.fi Author URI: https://www.dude.fi
Description: A minimalist WordPress starter theme. Description: A minimalist WordPress starter theme.
Version: 4.1.4 Version: 4.1.5
License: MIT License License: MIT License
License URI: https://github.com/digitoimistodude/air-light/blob/master/LICENSE.md License URI: https://github.com/digitoimistodude/air-light/blob/master/LICENSE.md
Text Domain: air-light Text Domain: air-light
Expand Down
2 changes: 1 addition & 1 deletion svg/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c7f8353

Please sign in to comment.