This file contains hidden or 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 | |
/** | |
* Add video from a custom field before the post content on single posts. | |
*/ | |
add_action( 'genesis_entry_content','lp_video_before_entry_content_on_singles', 5 ); | |
function lp_video_before_entry_content_on_singles() { | |
if ( is_singular() ) { | |
This file contains hidden or 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
/* rem is only relative to the html element */ | |
@function calculateRem($size) { | |
$remSize: $size / 16px; | |
@return $remSize * 1rem; | |
} | |
@mixin rem($size) { | |
font-size: $size; | |
font-size: calculateRem($size); | |
} |
This file contains hidden or 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
### | |
## SET UP DATABASE | |
### | |
$ /Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot | |
$ CREATE DATABASE dbname; | |
$ quit; | |
### | |
## IMPORT A DATABASE & FIND/REPLACE | |
### |
This file contains hidden or 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
/* calculate ems based on pixel value | |
use it like em(16px) or em(16) */ | |
$browser-context: 16; | |
@function em($pixels, $context: $browser-context) { | |
@if (unitless($pixels)) { | |
$pixels: $pixels * 1px; | |
} | |
@if (unitless($context)) { |
This file contains hidden or 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
.tribe-filters-open, .tribe-filters-open body { | |
overflow: visible!important; | |
} |
This file contains hidden or 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 Layout of The Event Calendar Single Templates | |
* Options - full-width-content, content-sidebar, sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content, sidebar-content-sidebar | |
*/ | |
//Target Community Events Edit Form and My Event's List | |
add_filter( 'genesis_site_layout', 'tribe_genesis_community_layouts' ); | |
function tribe_genesis_community_layouts() { | |
if( tribe_is_community_my_events_page() || tribe_is_community_edit_event_page() ) { | |
return 'full-width-content'; |
This file contains hidden or 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 Layout of The Event Calendar Single Templates | |
* Options - full-width-content, content-sidebar, sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content, sidebar-content-sidebar | |
*/ | |
//Target Single Events, Single Venues, and Single Organizers | |
add_filter( 'genesis_site_layout', 'tribe_genesis_single_layouts' ); | |
function tribe_genesis_single_layouts() { | |
if( is_singular( 'tribe_events' ) || is_singular( 'tribe_venue' ) || is_singular( 'tribe_organizer' ) ) { | |
return 'full-width-content'; |
This file contains hidden or 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 Layout of The Event Calendar Views for all Templates | |
* The Events Calendar @3.10 | |
* Genesis @2.1.2 | |
* Options - full-width-content, content-sidebar, sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content, sidebar-content-sidebar | |
*/ | |
//Target all Event Views (Month, List, Map etc), Single Events, Single Venues, and Single Organizers | |
add_filter( 'genesis_site_layout', 'tribe_genesis_all_layouts' ); | |
function tribe_genesis_all_layouts() { | |
This file contains hidden or 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
/** | |
* The Events Calendar - Bypass Genesis genesis_do_post_content in Event Views | |
* | |
* This snippet overrides the Genesis Content Archive settings for Event Views | |
* | |
* Event Template set to: Admin > Events > Settings > Display Tab > Events template > Default Page Template | |
* | |
* The Events Calendar @4.0.4 | |
* Genesis @2.2.6 | |
*/ |
This file contains hidden or 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 Page Layout of The Event Calendar Main Events Templates (Month, List, Photo, Etc..) | |
* The Events Calendar @3.10 | |
* Genesis @2.1.2 | |
* Options - full-width-content, content-sidebar, sidebar-content, content-sidebar-sidebar, sidebar-sidebar-content, sidebar-content-sidebar | |
*/ | |
//Target all Event Views (Month, List, Map etc) | |
add_filter( 'genesis_site_layout', 'tribe_genesis_view_layouts' ); | |
function tribe_genesis_view_layouts() { | |