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 | |
genesis_register_sidebar( array( | |
'id' => 'welcome', | |
'name' => __( 'Welcome', 'minimum' ), | |
'description' => __( 'This is the Welcome section of the homepage.', 'minimum' ), | |
) ); | |
genesis_register_sidebar( array( | |
'id' => 'home-bottom-message', |
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 | |
/* Display widget content for "welcome" section. | |
------------------------------------------------- */ | |
function minimum_home_loop_helper_top() { | |
genesis_widget_area( 'welcome', array( |
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 | |
//* Add Home Widget areas | |
add_action( 'genesis_after_header', 'minimum_home_loop_helper_top', 15 ); | |
add_action( 'genesis_after_header', 'minimum_home_featured', 15 ); | |
add_action( 'genesis_after_header', 'minimum_home_loop_helper_bottom', 15 ); |
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
/* Welcome | |
--------------------------------------------- */ | |
.welcome { | |
background: #fff; | |
clear: both; | |
} | |
.welcome .wrap { | |
color: #333; |
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 | |
add_filter( 'gform_enable_field_label_visibility_settings', '__return_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
<?php | |
// Do NOT include the opening php tag | |
// Replace 1 with your forms ID | |
// Replace User Notification with the name of your notification | |
// Insert your file path | |
add_filter( 'gform_notification_1', 'add_notification_attachments', 10, 3 ); | |
function add_notification_attachments( $notification, $form, $entry ) { | |
if ( $notification['name'] == 'User Notification' ) { | |
$path = 'path/to/file.pdf'; |
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
<script type="text/javascript"> | |
jQuery(document).ready(function(){ | |
/* apply only to a input with a class of gf_readonly */ | |
jQuery(".gf_readonly input").attr("readonly","readonly"); | |
}); | |
</script> |