Skip to content

Instantly share code, notes, and snippets.

@topleague
Created September 25, 2017 12:52
Show Gist options
  • Save topleague/57d783a6cb42cb67269de08b2866017f to your computer and use it in GitHub Desktop.
Save topleague/57d783a6cb42cb67269de08b2866017f to your computer and use it in GitHub Desktop.
Register Widgets with FadeUp Class
// Register a new widget area (this code snippet should go in functions.php)
genesis_register_widget_area(
array(
'id' => "your-widget-area",
'name' => __( "Your Widget", 'your-theme-text-domain' ),
'description' => __( "This is Your Widget Area section.", 'your-theme-text-domain' ),
)
);
// Display Widget Area (this code snippet should go in front.php)
genesis_widget_area( "your-widget-area", array(
'before' => '<div class="your-widget-area front-page-section"><div class="wrap"> <div class="widget-area fadeup-effect">',
'after' => '</div></div></div>',
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment