Skip to content

Instantly share code, notes, and snippets.

View surefirewebserv's full-sized avatar

Jonathan Perez surefirewebserv

View GitHub Profile
@surefirewebserv
surefirewebserv / triangle.scss
Created May 21, 2013 14:56
Awesome Triangle Mixin by krishna yallapanthula
@mixin triangle($color, $size, $direction){
content: '';
display: block;
height: 0;
width: 0;
border: $size solid transparent;
@if($direction== 'up'){
border-top: none;
border-bottom-color: $color;
@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;
@surefirewebserv
surefirewebserv / woo-tabs.css
Last active December 17, 2015 14:09
Style for WooTabs
/*-------------------------------------------------------------------------------------------*/
/* 9. WOODOJO */
/*-------------------------------------------------------------------------------------------*/
/* WooDojo Tabs */
.widget_woodojo_tabs h3 {
border-bottom: none;
}
.widget_woodojo_tabs .tabbable .nav {
margin: 0 0 -1px;
border: none!important;
<?php
add_action('genesis_before', 'gs_do_logo');
function gs_do_logo() {
if ( genesis_get_option('blog_title') == 'image' && get_theme_mod( 'gs_logo' ) )
remove_action( 'genesis_site_title', 'genesis_seo_site_title' );
add_action( 'genesis_site_title', 'gs_replace_logo' );
}
<?php
/**
* Plugin Name: Cache Post Thumbnails
* Description: Prime the post thumbnails cache for individual loops.
* Version: 1.0.0
* Author: Brady Vercher
* Author URI: http://www.blazersix.com/
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
<?php
//* Do NOT include the opening php tag
//* Customize the credits
add_filter( 'genesis_footer_creds_text', 'sp_footer_creds_text' );
function sp_footer_creds_text() {
echo '<div class="creds"><p>';
echo 'Copyright &copy; ';
echo date('Y');
echo ' &middot; <a href="http://mydomain.com">My Custom Link</a> &middot; Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>';
<?php
add_action( 'get_header', 'gs_set_bp_profile_fw' );
/**
* Make BuddyPress pages full width.
*
* @uses bp_current_component() Checks if current page is showing BuddyPress component.
*/
function gs_set_bp_profile_fw() {
<?php
//* Reposition breadcrumb
remove_action( 'genesis_before_loop', 'genesis_do_breadcrumbs' );
add_action( 'genesis_after_header', 'sfws_do_breadcrumbs' );
function sfws_do_breadcrumbs(){
echo "<div class='wrap'>";
genesis_do_breadcrumbs();
echo "</div>";
}
@surefirewebserv
surefirewebserv / add-widget-area.php
Last active April 16, 2019 14:22
Regsiter New Widget Area
<?php
// Don't include the PHP tag
genesis_widget_area( 'optin', array(
'before' => '<div id="sfws-optin" class="sfws-optin widget-area"><div class="wrap">',
'after' => '</div></div>',
) );
<?php
//* Do NOT include the opening php tag
//* Remove the edit link
add_filter ( 'genesis_edit_post_link' , '__return_false' );