Skip to content

Instantly share code, notes, and snippets.

View tsquez's full-sized avatar

Thomas E Vasquez tsquez

View GitHub Profile
@OriginalEXE
OriginalEXE / pe-customize-controls.css
Last active July 26, 2024 18:35
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%);
}
@zzramesses
zzramesses / Off-Canvas WordPress Menu Output
Last active January 26, 2018 15:05
Foundation Off-Canvas WordPress Menu
<aside class="left-off-canvas-menu">
<?php wp_nav_menu(
array(
'theme_location' => 'the menu you want to use',
'container' => false,
'menu_id' => '',
'menu_class' => 'off-canvas-list',
'walker' => new Off_Canvas_Walker()
)
);
@glueckpress
glueckpress / px-rem-cheat-sheet.css
Created May 26, 2013 16:17
Cheat sheet for rem-calculations based upon 14px and 16px.
/*! = $rembase: 14px
--------------------------------------------------------------
* hmtl { font-size: 87.5%; }
* body { font-size: 14px; font-size: 1rem; line-height: 1; }
* 4px 0.28571429rem
* 8px 0.571428571rem
* 12px 0.857142857rem
* 13px 0.928571429rem
* 14px 1rem
* 16px 1.142857143rem
@deckerweb
deckerweb / jetpack-sharing-bbpress2.php
Created February 4, 2013 13:54
Display Jetpack "Sharing" buttons on bbPress 2.x forums/ topics/ lead topics/ replies.
<?php
add_action( 'bbp_get_topic_content', 'ddw_jetpack_sharing_bbpress');
//add_action( 'bbp_get_reply_content', 'ddw_jetpack_sharing_bbpress' );
add_action( 'bbp_template_before_single_forum', 'ddw_jetpack_sharing_bbpress' );
add_action( 'bbp_template_before_single_topic', 'ddw_jetpack_sharing_bbpress' );
add_action( 'bbp_template_before_lead_topic', 'ddw_jetpack_sharing_bbpress' );
/**
* Display Jetpack "Sharing" buttons on bbPress 2.x forums/ topics/ lead topics/ replies.
*