One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
/** | |
* Filter the genesis_seo_site_title function to use an image for the logo instead of a background image | |
* | |
* The genesis_seo_site_title function is located in genesis/lib/structure/header.php | |
* @link http://blackhillswebworks.com/?p=4144 | |
* | |
*/ | |
add_filter( 'genesis_seo_title', 'bhww_filter_genesis_seo_site_title', 10, 2 ); |
<?php function mobile_device($classes) { | |
global $variable; | |
$is_ipad = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPad'); | |
$is_iphone = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPhone'); | |
$is_ipod = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'iPod'); | |
$is_android = (bool) strpos($_SERVER['HTTP_USER_AGENT'],'Android'); | |
if ( $is_android ) { | |
$mobile_device = 'android'; | |
} elseif ( $is_iphone || $is_ipad || $is_ipod ) { |
PX | REM | TW | |
---|---|---|---|
4 | 0.25 | 1 | |
8 | 0.5 | 2 | |
16 | 1 | 4 | |
32 | 2 | 8 | |
48 | 3 | 12 | |
64 | 4 | 16 | |
80 | 5 | 20 | |
96 | 6 | 24 | |
112 | 7 | 28 |
gatsby-config.js
onPreBootstrap
if it is implemented in any plugins, for example gatsby-plugin-typography. Receives handy [apiCallArgs](https://github.com/gatsbyjs/gatsby/blob/ffd8b2d691c9// put this on gatsby-node.js file | |
exports.onCreateWebpackConfig = ({ | |
stage, | |
rules, | |
loaders, | |
plugins, | |
actions, | |
}) => { | |
actions.setWebpackConfig({ | |
resolve: { |