Instantly share code, notes, and snippets.

View functions.php
<?php
//* Force full-width-content layout for Gutenberg pages
add_filter( 'genesis_site_layout', 'setGutenbergPageLayout' );
function setGutenbergPageLayout(){
if ( function_exists( 'has_blocks' ) && has_blocks( get_the_ID() ) ) {
return 'full-width-content';
}
}
View text-widget.md

TITLE:

Start building your brand for free.

CONTENT:

[gravityform id="2" title="false" description="false"]

<p>Sign up and we'll email you a free PDF about Personal Branding. We respect your privacy, and never share your information.</p>

View genesis-enews-widget.md

TITLE: Start building your brand for free.

TEXT TO SHOW AFTER FORM:

<p>Sign up and we'll email you a free PDF about Personal Branding. We respect your privacy, and never share your information.</p>

FORM ACTION: #

View text-widget-1.md

TITLE: Build your brand, build your business.

CONTENT:

View widget.html
<a class="button" href="https://www.youtube.com/watch?v=YbRubFUmAtc" rel="wp-video-lightbox">Watch Video</a>
View html-widget.html
Take a look at this example of the Course Maker theme by brandiD, built exclusively for the Genesis Framework. We like it so much, we're going to use it to market our own Personal Branding class.
<a class="button" href="https://www.youtube.com/watch?v=YbRubFUmAtc" rel="wp-video-lightbox">Watch Video</a>
View html-widget.html
<h1>Get to the Head of the Class</h1>
<p class="subhead">Lead your class with this clear, vibrant, easy-to-edit Genesis theme.</p>
<p>This theme is packed full of features and functionality to help you market your new course. The homepage layout will drive traffic to your site and engage users with your online course materials while communicating than you're an autority in your space, without actually saying that -- unless you want it to!</p>
<a href="https://thebrandidthemes.com/shop/" class="button">Buy the Theme</a>
View widget.html
<a href="#" class="button">Buy the Theme</a>
View widget.html
<p class="subhead">Lead your class with this clear, vibrant, easy-to-edit Genesis theme.</p>
View functions.php
<?php
add_action( "customize_register", "am_customizer_mods" );
function am_customizer_mods( $wp_customize ) {
//* Remove 'header image' Control
$wp_customize->remove_control("header_image");
//* Remove 'widgets' Panel
$wp_customize->remove_panel("widgets");