This file contains 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 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 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 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 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 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 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
<form action="your_action_url" method="post"> | |
<p class="et_bloom_popup_input et_bloom_subscribe_name"> <!-- keep note of the paragraph and the classes being used, you need this --> | |
<input type="text" id="input_1" name="q1_control_fname" size="50" placeholder="Name" /> <!-- Placeholder is important --> | |
</p> | |
<p class="et_bloom_popup_input et_bloom_subscribe_email"> | |
<input type="email" class="validate[required, Email]" id="input_4" name="q4_email" size="50" placeholder="Email Address" /> | |
</p> | |
<button id="input_2" type="submit" class="form-submit-button">Learn How!</button> | |
</form> |
This file contains 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 This Line | |
//Add to single product page. | |
add_action( 'woocommerce_single_product_summary', 'return_policy', 999 ); | |
function return_policy() { | |
// Find connected pages | |
$connected = new WP_Query( array( | |
'connected_type' => 'posts_to_pages', // Use same name as you used in the previous function. | |
'connected_items' => get_queried_object(), | |
'nopaging' => true, |
This file contains 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
$('.trigger-click').click(function() { | |
$( '.et_bloom_popup' ).each( function() { | |
auto_popup( $( this ), 0 ); | |
}); | |
}); |
This file contains 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 above. | |
function sfws_books_to_relationship() { | |
p2p_register_connection_type( array( | |
'name' => 'bookes_to_authors', //Give it a name that you can reference | |
'from' => 'books', // This can be the slug name of your CPT as well | |
'to' => 'authors' // This can be the slug name of your CPT as well | |
) ); | |
p2p_register_connection_type( array( |
OlderNewer