Adding a widget area keeps breaking my site
-
Hello, I have added the following code to add a widget area into a genesis child theme. I tried the code at the bottom of the functions.php file and it worked like a charm. When I put in Code Snippet, the site breaks (gray screen) and I have to go into safe mode to fix it. Here is the code:
genesis_register_sidebar( array( 'id' => 'after-header-widget', 'name' => __( 'After Header Widget', 'genesis' ), 'description' => __( 'After Header Widget Area', 'daily-dish-pro' ), ) ); add_action( 'genesis_after_header', 'add_genesis_widget_area' ); function add_genesis_widget_area() { genesis_widget_area( 'after-header-widget', array( 'before' => '<div class="after-header-widget widget-area">', 'after' => '</div>', ) ); }
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding a widget area keeps breaking my site’ is closed to new replies.