Community Forums › Forums › Archived Forums › Design Tips and Tricks › home bottom 1-3 is behaving like footer
- This topic has 4 replies, 2 voices, and was last updated 11 years, 4 months ago by venkats.
-
AuthorPosts
-
December 15, 2012 at 11:28 am #5423venkatsMember
Hi,
looking for help on these 3 issues, as i have tried all possible things, but didn't find solution.
1. Below 'home middle 1-3', i have added 'home bottom 1-3" and it is working well as expected. The only problem is, it is appearing as footer in all pages.
my site
Is this code in functions.php causing the problem, particularly "child_after_content_ad_sidebar"
------------
add_action( 'genesis_after_content_sidebar_wrap', 'child_after_content_ad_sidebar' );
/** Loads a new sidebar after the content */
function child_after_content_ad_sidebar() {echo '<div class="home-bottom-1">';
dynamic_sidebar( 'home-bottom-1' );
echo '</div>';echo '<div class="home-bottom-2">';
dynamic_sidebar( 'home-bottom-2' );
echo '</div>';echo '<div class="home-bottom-3">';
dynamic_sidebar( 'home-bottom-3' );
echo '</div>';}
----------
2. For the footer, how to control the color of the titles & links. If i change, it is changing the home middle 1-3, home bottom 1-3 also, which i do not want. So where to edit locally.
3. Where to edit to reduce the gap between home top and home middle.
Thanks in advance.
December 15, 2012 at 11:29 am #5424venkatsMemberforgot to mention, i am using enterprise theme.
December 16, 2012 at 9:38 am #5540AnitaKeymasterIt's helpful to only post once. Did you copy and paste the footer code in order to make your three widget areas?
Love coffee, chocolate and my Bella!
December 16, 2012 at 10:32 am #5549venkatsMemberHi Anitac,
I dont think, i have copied the footer code, but 'home middle' part of the code in 'functions.php' as below.
After copying, i have renamed 'home middle --> home bottom"
==========
genesis_register_sidebar( array(
'id' => 'home-bottom-1',
'name' => __( 'Home Bottom #1', 'enterprise' ),
'description' => __( 'This is home bottom #1 section.', 'enterprise' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-2',
'name' => __( 'Home Bottom #2', 'enterprise' ),
'description' => __( 'This is home bottom #2 section.', 'enterprise' ),
) );
genesis_register_sidebar( array(
'id' => 'home-bottom-3',
'name' => __( 'Home Bottom #3', 'enterprise' ),
'description' => __( 'This is home bottom #3 section.', 'enterprise' ),
) );add_action( 'genesis_after_content_sidebar_wrap', 'child_after_content_ad_sidebar' );
/** Loads a new sidebar after the content */
function child_after_content_ad_sidebar() {echo '<div class="home-bottom-1">';
dynamic_sidebar( 'home-bottom-1' );
echo '</div>';echo '<div class="home-bottom-2">';
dynamic_sidebar( 'home-bottom-2' );
echo '</div>';echo '<div class="home-bottom-3">';
dynamic_sidebar( 'home-bottom-3' );
echo '</div>';===========
December 16, 2012 at 10:40 am #5553venkatsMemberrealized that i haven't edited 'home.php', but only functions.php while adding these 3 extra widgets (home bottom 1-3). I have followed one WP/studio press article on creating extra widgets.
Do you think this is the issue ? kindly advice.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.