Community Forums › Forums › Archived Forums › Design Tips and Tricks › Outreach Pro Widget section move
- This topic has 13 replies, 2 voices, and was last updated 10 years, 4 months ago by
Genesis Developer.
-
AuthorPosts
-
December 1, 2014 at 10:13 am #133339
Jack
MemberHi,
Using the Outreach Pro Theme is it possible to switch the sub-footers and the home bottom so that the 4 sections would be bellow the text?
Many Thanks,
Pete.December 1, 2014 at 10:34 am #133341Genesis Developer
Memberare you wanting for home page only?
December 1, 2014 at 10:38 am #133342Jack
MemberYeah Also how would you go about removing the sub footers from other pages you just brought it to our attention sorry.
December 1, 2014 at 10:44 am #133343Genesis Developer
MemberRemoving from Other pages:
Open the functions.php and remove this code
//* Add the sub footer section add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 ); function outreach_sub_footer() { if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) { echo '<div class="sub-footer"><div class="wrap">'; genesis_widget_area( 'sub-footer-left', array( 'before' => '<div class="sub-footer-left">', 'after' => '</div>', ) ); genesis_widget_area( 'sub-footer-right', array( 'before' => '<div class="sub-footer-right">', 'after' => '</div>', ) ); echo '</div><!-- end .wrap --></div><!-- end .sub-footer -->'; } }
Repositioning the Sub-footer for Home page:
Open the front-page.php file and change this line
add_action( 'genesis_before_footer', 'outreach_home_bottom_widgets', 1 );
by
add_action( 'genesis_before_footer', 'outreach_home_bottom_widgets', 10 );
Add the following code before the
genesis()
line//* Add the sub footer section add_action( 'genesis_before_footer', 'outreach_sub_footer', 5 ); function outreach_sub_footer() { if ( is_active_sidebar( 'sub-footer-left' ) || is_active_sidebar( 'sub-footer-right' ) ) { echo '<div class="sub-footer"><div class="wrap">'; genesis_widget_area( 'sub-footer-left', array( 'before' => '<div class="sub-footer-left">', 'after' => '</div>', ) ); genesis_widget_area( 'sub-footer-right', array( 'before' => '<div class="sub-footer-right">', 'after' => '</div>', ) ); echo '</div><!-- end .wrap --></div><!-- end .sub-footer -->'; } }
December 1, 2014 at 10:56 am #133344Jack
MemberThat worked Thanks for your help, but one thing went wrong and that is that it placed the home-bottom bellow the footer widgets as well as the sub-footer widgets. We would still like the footer widgets to be at the bottom and the home bottom to be above them.
Thanks Again For your help,
December 1, 2014 at 11:00 am #133345Genesis Developer
Memberthen replace the no 5 to 1 and 10 to 2
December 1, 2014 at 11:10 am #133346Jack
MemberOne last thing with our frame there is a widget area added to the theme its a full width rectangle 200px high. this will go bellow the home-bottom(in its moved position). would you have any idea on how we would be able to make this.
Thanks for your help.
December 1, 2014 at 11:22 am #133347Genesis Developer
Memberare you already registered the new widget area? You will add the code in the front-page.php if you only want for home page. Other wise you will add the code in functions.php file
December 1, 2014 at 11:30 am #133349Jack
MemberNo we are not sure how to register a new plugin area that's what were trying to work out and then putting it in place, we haven't got much experience with this. Would you be able to show us how to register a new widget area and then place it in the front-page.php or direct us to somewhere we could learn how to do this.
Thanks for your help,
December 1, 2014 at 11:36 am #133350Genesis Developer
Member//* Register widget areas
genesis_register_sidebar( array( 'id' => 'before-footer-widgets', 'name' => __( 'Before Footer Widgets', 'genesis' ), 'description' => __( 'This section will appear at above of the footer widget area.', 'genesis' ), ) ); add_action('genesis_before_footer', 'new_home_widget', 3); function new_home_widget(){ genesis_widget_area( 'before-footer-widgets', array( 'before' => '<div class="new_home_widget widget-area">', 'after' => '</div>', ) ); }
Add the above code in functions.php file
December 1, 2014 at 11:48 am #133351Jack
MemberThanks The new widget area works am i correct in saying we just add it to the style sheet now and can adjust it from there?
December 1, 2014 at 11:51 am #133352Genesis Developer
MemberYou need to add the CSS in style.css file for design
December 1, 2014 at 11:58 am #133353Jack
MemberThank you very much you've been a great help the site is now starting to take shape,
your help was greatly appreciated.Have a good day.
Pete.
December 1, 2014 at 12:05 pm #133354Genesis Developer
MemberYou are welcome. Please mark it as RESOLVED.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.