Community Forums › Forums › Archived Forums › Design Tips and Tricks › Parallax Pro – Adding More Featured Sections to Homepage
Tagged: featured sections, parallax-pro
- This topic has 4 replies, 5 voices, and was last updated 10 years, 7 months ago by
mbangayan.
-
AuthorPosts
-
March 24, 2015 at 10:25 am #145480
asmal
MemberCurrently there are only 5 featured sections on the homepage (3 with background images). Is there a way to add more sections?
For example, lets say I wanted to increase it to 10 sections which alternate the background just like the standard theme (image, white, image, white, etc...).
Thank you,
AsmalMarch 24, 2015 at 11:40 am #145501Genesis Developer
MemberAdd following code in your functions.php file. It will create extra two widget areas
genesis_register_sidebar( array( 'id' => 'home-section-6', 'name' => __( 'Home Section 6', 'parallax' ), 'description' => __( 'This is the home section 6 section.', 'parallax' ), ) ); genesis_register_sidebar( array( 'id' => 'home-section-7', 'name' => __( 'Home Section 7', 'parallax' ), 'description' => __( 'This is the home section 7 section.', 'parallax' ), ) );If you want then you can create more widget areas for home page
Now edit the font-page.php file. Replace the following line
if ( is_active_sidebar( 'home-section-1' ) || is_active_sidebar( 'home-section-2' ) || is_active_sidebar( 'home-section-3' ) || is_active_sidebar( 'home-section-4' ) || is_active_sidebar( 'home-section-5' ) ) {by
if ( is_active_sidebar( 'home-section-1' ) || is_active_sidebar( 'home-section-2' ) || is_active_sidebar( 'home-section-3' ) || is_active_sidebar( 'home-section-4' ) || is_active_sidebar( 'home-section-5' ) || is_active_sidebar( 'home-section-6' ) || is_active_sidebar( 'home-section-7' ) ) {Also go to line no 86 at same file and add the following code:
genesis_widget_area( 'home-section-6', array( 'before' => '<div class="home-odd home-section-6 widget-area"><div class="wrap">', 'after' => '</div></div>', ) ); genesis_widget_area( 'home-section-7', array( 'before' => '<div class="home-odd home-section-7 widget-area"><div class="wrap">', 'after' => '</div></div>', ) );This is the full process for creating the extra sections on home page.
March 24, 2015 at 5:41 pm #145544Brad Dalton
ParticipantApril 18, 2015 at 1:32 pm #148368jasonhodge
MemberThe sections added correctly for me with this method, but they have grey backgrounds. Is there another trick for selecting an image or background color for the additional Home Sections?
October 3, 2015 at 5:33 pm #167324mbangayan
MemberHi Jason.
Did you find out how to add an image on home section 7?? like 1,3,5?
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.