Skip to content

Instantly share code, notes, and snippets.

View tomfinitely's full-sized avatar

Tom Finley tomfinitely

View GitHub Profile
@mattbanks
mattbanks / mb_html5_doctype.php
Last active December 21, 2015 07:18
Adding Conditional Classes to the HTML Tag in Genesis 2.0
/**
* HTML5 DOCTYPE
* removes the default Genesis doctype, adds new html5 doctype with IE8 detection
*/
function mb_html5_doctype() {
?>
<!DOCTYPE html>
<!--[if IE 8]> <html class="lt-ie9" <?php language_attributes( 'html' ); ?>> <![endif]-->
<!--[if gt IE 8]><!--> <html <?php language_attributes( 'html' ); ?>> <!--<![endif]-->
@wpsmith
wpsmith / column-classes.css
Last active October 11, 2017 19:02
CSS: Genesis Column Classes including fifths
/* Column Classes
Link: Link: http://wpsmith.net/2013/wp/genesis-2-0-drops-fifths-from-column-classes/
Link: http://twitter.github.io/bootstrap/assets/css/bootstrap-responsive.css
--------------------------------------------- */
.five-sixths,
.four-sixths,
.four-fifths,
.one-fifth,
.one-fourth,
@codearachnid
codearachnid / custom_tribe_event_featured_image.php
Created July 19, 2013 19:11
rewrite the tribe event featured image on single event view templates with a custom size
@jo-snips
jo-snips / filter_query_arg.php
Created July 16, 2013 19:20
The Events Calendar - Filter Query Args For Genesis Responsive Slider
<?php
add_filter('genesis_responsive_slider_query_args', 'custom_genesis_responsive_slider_query_args');
function custom_genesis_responsive_slider_query_args($query_args) {
$term_args = array( );
if ( 'page' != genesis_get_responsive_slider_option( 'post_type' ) ) {
if ( genesis_get_responsive_slider_option( 'posts_term' ) ) {
@ChrisCree
ChrisCree / gist:5888660
Last active March 15, 2018 22:55
Genesis doesn't put a page title on the blog page template by default. Here's a a function that will do that for you. Just drop it into your functions.php file.
<?php
// Don't copy the opening <?php tag above
// Add page title to blog page template
add_action( 'genesis_before', 'wsm_blog_page_title' );
function wsm_blog_page_title() {
if ( is_page_template( 'page_blog.php' ) ) {
add_action( 'genesis_before_content', 'wsm_show_blog_page_title_text', 2 );
}
}
@surefirewebserv
surefirewebserv / simple-social-centered.css
Last active August 31, 2023 15:51
Center Simple Social Icons when doing responsive styles
/* Align Simple Social Icons Centered */
.simple-social-icons ul.alignright,
.simple-social-icon ul.alignleft {
text-align: center;
}
.simple-social-icons ul.alignright li,
.simple-social-icons ul.alignleft li {
display: inline-block;
float: none;
@jo-snips
jo-snips / custom-events-wp_query.php
Last active December 3, 2024 05:39
The Events Calendar - Custom Query Using WP_Query
<?php
$args = array(
'post_status'=>'publish',
'post_type'=>array(TribeEvents::POSTTYPE),
'posts_per_page'=>10,
//order by startdate from newest to oldest
'meta_key'=>'_EventStartDate',
'orderby'=>'_EventStartDate',
'order'=>'DESC',