Community Forums › Forums › Archived Forums › General Discussion › Scribble Theme – Home Page Widgets
- This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by faith.
-
AuthorPosts
-
August 16, 2013 at 5:56 pm #56943faithMember
Hi, I'm not able to rearrange the order of the Home Page widgets in the Scribble theme. The current order is Welcome, About, Blog, Photos, Services, Contact. How do I move Services above Blog?
How do I get the actual Gravity or Contact Form 7 contact form to the Contact widget on the home page like in the demo - http://demo.studiopress.com/scribble/?
Also, how do I add a small Subscribe to Newsletter form in the right column of the About Me section, if the About section is a text widget?
Thank you
August 16, 2013 at 6:18 pm #56945Brad DaltonParticipantYou could simply rename the widgets in your functions file and change services to blog.
Or you could do that and also rename the code in the home.php file:
functions.php
/** Register widget areas */ genesis_register_sidebar( array( 'id' => 'welcome', 'name' => __( 'Welcome', 'scribble' ), 'description' => __( 'This is the welcome section.', 'scribble' ), ) ); genesis_register_sidebar( array( 'id' => 'about', 'name' => __( 'About', 'scribble' ), 'description' => __( 'This is the about section.', 'scribble' ), ) ); genesis_register_sidebar( array( 'id' => 'services', 'name' => __( 'Services', 'scribble' ), 'description' => __( 'This is the services section.', 'scribble' ), ) ); genesis_register_sidebar( array( 'id' => 'photos', 'name' => __( 'Photos', 'scribble' ), 'description' => __( 'This is the photos section.', 'scribble' ), ) ); genesis_register_sidebar( array( 'id' => 'blog', 'name' => __( 'Blog', 'scribble' ), 'description' => __( 'This is the blog section.', 'scribble' ), ) ); genesis_register_sidebar( array( 'id' => 'contact', 'name' => __( 'Contact', 'scribble' ), 'description' => __( 'This is the contact section.', 'scribble' ), ) );
home.php
<?php add_action( 'genesis_meta', 'scribble_home_genesis_meta' ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function scribble_home_genesis_meta() { if ( is_active_sidebar( 'welcome' ) || is_active_sidebar( 'about' ) || is_active_sidebar( 'services' ) || is_active_sidebar( 'photos' ) || is_active_sidebar( 'blog' ) || is_active_sidebar( 'contact' ) ) { remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'scribble_home_loop_helper' ); add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); } } function scribble_home_loop_helper() { if ( is_active_sidebar( 'welcome' ) ) { echo '<div id="welcome"><div class="wrap">'; dynamic_sidebar( 'welcome' ); echo '</div><!-- end .wrap --></div><!-- end .welcome -->'; } if ( is_active_sidebar( 'about' ) ) { echo '<div id="about"><div class="wrap">'; dynamic_sidebar( 'about' ); echo '<div class="clear top"><p><a href="""#wrap""">To the Top</a></p></div><!-- end .clear .top --></div><!-- end .wrap --></div><!-- end .about -->'; } if ( is_active_sidebar( 'services' ) ) { echo '<div id="services"><div class="wrap">'; dynamic_sidebar( 'services' ); echo '<div class="clear top"><p><a href="""#wrap""">To the Top</a></p></div><!-- end .clear .top --></div><!-- end .wrap --></div><!-- end .services -->'; } if ( is_active_sidebar( 'photos' ) ) { echo '<div id="photos"><div class="wrap">'; dynamic_sidebar( 'photos' ); echo '<div class="clear top"><p><a href="""#wrap""">To the Top</a></p></div><!-- end .clear .top --></div><!-- end .wrap --></div><!-- end .photos -->'; } if ( is_active_sidebar( 'blog' ) ) { echo '<div id="blog"><div class="wrap">'; dynamic_sidebar( 'blog' ); echo '<div class="clear top"><p><a href="""#wrap""">To the Top</a></p></div><!-- end .clear .top --></div><!-- end .wrap --></div><!-- end .blog -->'; } if ( is_active_sidebar( 'contact' ) ) { echo '<div id="contact"><div class="wrap">'; dynamic_sidebar( 'contact' ); echo '<div class="clear top"><p><a href="""#wrap""">To the Top</a></p></div><!-- end .clear .top --></div><!-- end .wrap --></div><!-- end .contact -->'; } } genesis();
Please start a new post for your other questions.
August 16, 2013 at 8:40 pm #56968faithMemberThank you Braddalton! I will start a new post for the other two.
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.