Skip to content

Instantly share code, notes, and snippets.

View tsquez's full-sized avatar

Thomas E Vasquez tsquez

View GitHub Profile
@tsquez
tsquez / Every element that uses Open Sans
Created November 11, 2015 10:24
These are the elements in foundation.css that use the Open Sans font. I compiled this list for those of you who want to use something other than Open Sans.
body,
button,
.button,
.top-bar-section ul li > a,
.pricing-table .title,
.pricing-table .price,
.tabs .tab-title > a,
.side-nav,
.side-nav li.active > a:first-child:not(.button),
.accordion .accordion-navigation > a, .accordion dd > a,
@tsquez
tsquez / Hide Orbit Timer
Created November 13, 2015 11:25
Use this to hide the timer in Orbit
/* Misc */
.orbit-timer { /* Hides the orbit timer */
left: -10000px;
top: auto;
height: 1px;
overflow: hidden;
position: absolute;
width: 1px;
}
@tsquez
tsquez / block-grid
Created November 13, 2015 11:37
use this for creating stackable grids for content
<ul class="small-block-grid-1 medium-block-grid-2 large-block-grid-4">
<li><!-- Your content goes here --></li>
<li><!-- Your content goes here --></li>
<li><!-- Your content goes here --></li>
<li><!-- Your content goes here --></li>
</ul
@tsquez
tsquez / sticky_nav
Created November 3, 2016 16:07
This is how you use the sticky nav
<div data-sticky-container>
<div class="title-bar" data-sticky data-options="marginTop:0;">
<div class="title-bar-left">
<span class="title-bar-title">Sticky Navigation</span>
</div><!-- title-bar -->
<div class="title-bar-right">
</div><!-- end title-bar-right -->
</div><!-- end data-sticky-container -->
@tsquez
tsquez / pe-customize-controls.css
Created February 14, 2017 17:21 — forked from OriginalEXE/pe-customize-controls.css
Extending WordPress Customizer Panels and Sections to allow nesting
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent,
#customize-theme-controls .customize-pane-child.current-section-parent {
-webkit-transform: translateX(-100%);
-ms-transform: translateX(-100%);
transform: translateX(-100%);
}
@tsquez
tsquez / WordPress If Statements
Last active July 4, 2017 18:51
WordPress If Statements
/**************************************
* if, else
*************************************/
<?php
if ( ) {
CONTENT HERE
}
else {
/**
* Generated by the WordPress Meta Box Generator
*/
class Rational_Meta_Box {
private $screens = array(
'post',
'page',
);
private $fields = array(
array(
// Register User Contact Methods
function custom_user_contact_methods( $user_contact_method ) {
$user_contact_method['facebook'] = __( 'Facebook Username', 'text_domain' );
$user_contact_method['twitter'] = __( 'Twitter Username', 'text_domain' );
return $user_contact_method;
}
add_filter( 'user_contactmethods', 'custom_user_contact_methods' );
@tsquez
tsquez / Display All Google Fonts with Kirki
Last active March 25, 2018 22:26
Display list of all Google fonts in Kirki Typography
'choices' => array(
'fonts' => array(
'google' => array(
'ABeeZee','Abel','Abhaya Libre','Abril Fatface','Aclonica','Acme','Actor','Adamina','Advent Pro','Aguafina Script','Akronim','Aladin','Aldrich','Alef','Alegreya','Alegreya SC','Alegreya Sans','Alegreya Sans SC','Alex Brush','Alfa Slab One','Alice','Alike','Alike Angular','Allan','Allerta','Allerta Stencil','Allura','Almendra','Almendra Display','Almendra SC','Amarante','Amaranth','Amatic SC','Amatica SC','Amethysta','Amiko','Amiri','Amita','Anaheim','Andada','Andika','Angkor','Annie Use Your Telescope','Anonymous Pro','Antic','Antic Didone','Antic Slab','Anton','Arapey','Arbutus','Arbutus Slab','Architects Daughter','Archivo','Archivo Black','Archivo Narrow','Aref Ruqaa','Arima Madurai','Arimo','Arizonia','Armata','Arsenal','Artifika','Arvo','Arya','Asap','Asap Condensed','Asar','Asset','Assistant','Astloch','Asul','Athiti','Atma','Atomic Age','Aubrey','Audiowide','Autour One','Average','Average Sans','Averia Gruesa Libre','Averia Libre','Ave
@tsquez
tsquez / BBPress Custom Role Names
Created April 1, 2018 14:55
Use this function to change the user role names in BBPres
function bbpress_custom_roles() {
return array(
bbp_get_keymaster_role() => array(// Keymaster
'name' => 'Custom Keymaster Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_keymaster_role() )
),
// Moderator
bbp_get_moderator_role() => array(
'name' => 'Custom Moderator Role Name',
'capabilities' => bbp_get_caps_for_role( bbp_get_moderator_role() )