Skip to content

Instantly share code, notes, and snippets.

@craigsimps
Last active April 8, 2022 04:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigsimps/17b55038857f8ae62af9 to your computer and use it in GitHub Desktop.
Save craigsimps/17b55038857f8ae62af9 to your computer and use it in GitHub Desktop.
Example of multiple uses of genesis_register_sidebar.
<?php
//* Register widget areas
genesis_register_sidebar( array(
'id' => 'home-section-1',
'name' => __( 'Home Section 1', 'parallax' ),
'description' => __( 'This is the home section 1 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-2',
'name' => __( 'Home Section 2', 'parallax' ),
'description' => __( 'This is the home section 2 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-3',
'name' => __( 'Home Section 3', 'parallax' ),
'description' => __( 'This is the home section 3 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-4',
'name' => __( 'Home Section 4', 'parallax' ),
'description' => __( 'This is the home section 4 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'home-section-5',
'name' => __( 'Home Section 5', 'parallax' ),
'description' => __( 'This is the home section 5 section.', 'parallax' ),
) );
genesis_register_sidebar( array(
'id' => 'after-entry',
'name' => __( 'After Entry', 'parallax' ),
'description' => __( 'This is the after entry widget area.', 'parallax' ),
) );
Copy link

ghost commented Apr 8, 2022

genesis_register_sidebar( array(
'id'          => 'home-section-6',
'name'        => __( 'Home Section 6', 'author-pro' ),
'description' => __( 'This is the home section 6 section.', 'author-pro' ),
) );

Your PHP code changes were rolled back due to an error on line 236 of file wp-content/themes/author-pro-v1.2.3/functions.php. Please fix and try saving again.

syntax error, unexpected identifier " ", expecting ")"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment