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 | |
// Don't inlude the PHP tag, just copy whats below. | |
//* Contact Widget | |
genesis_register_sidebar( array( | |
'id' => 'contact-widget', | |
'name' => __( 'Contact Widget', 'genesis' ), | |
'description' => __( 'Contains Contact Information under the Content Area' ), | |
) ); |
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
.fl-builder .site-inner { | |
padding-top:0; | |
} | |
.fl-builder .site-inner .wrap { | |
width:100%; | |
max-width: 100%; | |
} | |
.fl-builder .entry-title { |
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 | |
//* Change the Add To Cart Link | |
add_filter( 'woocommerce_loop_add_to_cart_link', 'sfws_add_product_link' ); | |
function sfws_add_product_link( $link ) { | |
global $product; | |
$product_id = $product->id; | |
$product_sku = $product->get_sku(); | |
$link = '<a href="'.get_permalink().'" rel="nofollow" data-product_id="'.$product_id.'" data-product_sku="'.$product_sku.'" data-quantity="1" class="button add_to_cart_button product_type_variable">'.sfws_woocommerce_product_add_to_cart_text().'</a>'; | |
return $link; | |
} |
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_filter( 'envira_gallery_output_after_link', 'tgm_envira_gallery_caption', 10, 5 ); | |
/** | |
* Adds a caption below each image in the gallery. | |
* | |
* @since 1.0.0 | |
* | |
* @param string $output String of gallery output. | |
* @param mixed $id The ID of the gallery. | |
* @param array $item Array of data about the image. |
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 | |
// Don't copy the PHP tag | |
/** | |
* Dequeue the Auto Save script in the admin. | |
* | |
* Hooked to the admin_enqueue_scripts action, with a late priority (100), | |
* so that it is after the script was enqueued. | |
*/ |
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 | |
//* Do NOT include the opening php tag | |
//* Remove the edit link | |
add_filter ( 'genesis_edit_post_link' , '__return_false' ); |
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 | |
// 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>', | |
) ); |
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 | |
//* 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>"; | |
} |
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_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() { |
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 | |
//* 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 © '; | |
echo date('Y'); | |
echo ' · <a href="http://mydomain.com">My Custom Link</a> · Built on the <a href="http://www.studiopress.com/themes/genesis" title="Genesis Framework">Genesis Framework</a>'; |