Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
/* ## Screen reader text | |
--------------------------------------------- */ | |
.screen-reader-text, | |
.screen-reader-text span, | |
.screen-reader-shortcut { | |
position: absolute !important; | |
clip: rect(0, 0, 0, 0); | |
height: 1px; | |
width: 1px; |
//* Add Accessibility support | |
add_theme_support( 'genesis-accessibility', array( 'headings', 'drop-down-menu', 'search-form', 'skip-links' ) ); |
upstream phpfpm { | |
server unix:/var/run/php5-fpm.sock; | |
} | |
upstream hhvm { | |
server unix:/var/run/hhvm/hhvm.sock; | |
} | |
# SSL | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; |
<?php | |
//***Add Simple Sidebar Functionality To Author Archives**/ | |
add_action( 'get_header', 'bourncreative_simplesidebars_check' ); | |
function bourncreative_simplesidebars_check() { | |
if ( function_exists( 'ss_sidebars_init' ) && is_active_sidebar( 'caterina-rando-sidebar' ) ) { | |
remove_action( 'genesis_sidebar_alt', 'ss_do_sidebar_alt' ); // Unhook Genesis Simple Sidebars | |
add_action( 'genesis_sidebar_alt', 'bourncreative_author_sidebar_alt' ); // Add Back Custom Sidebar Created With Simple Sidebars | |
function bourncreative_author_sidebar_alt() { | |
dynamic_sidebar( 'caterina-rando-sidebar' ); |
<?php | |
function rkv_cacheless_css() { | |
wp_enqueue_style( 'MY-CSS-NAME', MY-CSS-FILE.CSS, array(), time(), 'all' ); | |
} |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
<?php | |
/** | |
* Disable Inactive Plugins Nag on Synthesis | |
* | |
* @since 1.0.0 | |
*/ | |
function ea_disable_inactive_plugins_nag() { | |
$disable = get_option( 'synthesis-plugin-snapshots-disable' ); | |
if ( ! $disable ) |
<?php | |
// Remove the default Genesis child theme CSS | |
remove_action( 'genesis_meta', 'genesis_load_stylesheet' ); | |
add_action( 'wp_enqueue_scripts', 'prefix_load_stylesheet' ); | |
/** | |
* Get the current child theme version | |
* and use it to bust the cache by appending | |
* it to the CSS output. | |
* | |
* @author FAT Media |