Last active
April 8, 2022 04:34
-
-
Save craigsimps/17b55038857f8ae62af9 to your computer and use it in GitHub Desktop.
Example of multiple uses of genesis_register_sidebar.
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 | |
//* 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' ), | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 ")"