This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900&display=swap'); | |
body { | |
font-family: 'Lato', sans-serif !important; | |
text-rendering: optimizeLegibility !important; | |
word-spacing: -1px; | |
-webkit-font-smoothing: auto; | |
} | |
.CodeMirror-cursor { | |
border-left-color: rgba(255,255,255,1) !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright 2017 Bryan Keller (https://github.com/widget-) | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
defined( 'ABSPATH' ) or die( 'Cheatin\' uh?' ); | |
/* | |
Plugin Name: Enforce Trailing Slash on URLs | |
Author: Jonathan (WP Rocket Team) | |
Author URI: http://wp-rocket.me | |
*/ | |
add_filter( 'before_rocket_htaccess_rules', '__force_trailing_slash' ); | |
function __force_trailing_slash( $marker ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp_rocket_deactivate_inline_css_minify( $html_options ) { | |
unset( $html_options['cssMinifier'] ); | |
return $html_options; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wp_rocket_activate_inline_js_minify( $html_options ) { | |
$html_options['jsMinifier'] = 'rocket_minify_inline_js'; | |
return $html_options; | |
} | |
add_filter( 'rocket_minify_html_options', 'wp_rocket_activate_inline_js_minify' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'rocket_cache_reject_ua', 'wprocket_remove_fb_ua' ); | |
function wprocket_remove_fb_ua( $ua ) { | |
if ( in_array( 'facebookexternalhit', $ua ) ) { | |
$ua = array_flip( $ua ); | |
unset( $ua[ 'facebookexternalhit' ] ); | |
$ua = array_flip( $ua ); | |
} | |
return $ua; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GENESIS get featured image. | |
// 1. Sets the featured image. | |
// 2. If no featured image then get image from category. | |
// 3. If no category image then get the first post image. | |
// 4. If no post image or category image then set a fallback image. | |
// Add to your functions file. | |
// Resources | |
// https://wordpress.org/support/topic/make-first-image-in-post-featured-if-no-featured-is-set?replies=9 | |
// http://wpsites.net/web-design/add-default-featured-image-for-each-post-in-a-category/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// don't include | |
/** ==================================================================================== | |
* SITE MAP : archive page filter for genesis_sitemap_output(); | |
* using christina_get_posts_for_sitemap(); | |
==================================================================================== **/ | |
function christina_sitemap($sitemap_post_list) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Using wp_dropdown_categories with the post type filter applied. | |
* | |
* @link https://joshuadnelson.com/category-taxonomy-dropdown-filtered-by-post-type/ | |
*/ | |
// Taxonomy dropdown arguments | |
$args = array( | |
'taxonomy' => 'department', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Your Custom Functionality Plugin | |
* Description: Short description of your plugin here. | |
* Author: your name here | |
* License: GNU General Public License v3 or later | |
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | |
*/ | |
// Basic security, prevents file from being loaded directly. |
NewerOlder