Community Forums › Forums › Archived Forums › General Discussion › RSS Feed icon displaying in the Wrong location
Tagged: RSS Feed icon, RSS feed widget
- This topic has 5 replies, 2 voices, and was last updated 10 years, 3 months ago by nutsandbolts.
-
AuthorPosts
-
October 1, 2013 at 2:32 pm #64985Steve@316 DesignMember
Forgive me If I've posted this before,.. But I could find the post if I did.
Anyways, I'm using a simple RRS widget in the "Home Bottom" area. But for some reason one of the RSS icons is displaying up by the "Home Right" widget. How can I fix this?Thank Steve
Steve Adams | 316 Design | 619.726.9923
We live the lifestyles that we promote.™November 25, 2013 at 1:48 am #75451nutsandboltsMemberIt looks like you have an unclosed <div> somewhere - if you click on Home Bottom in Firebug, it's taking up Home Left, Home Right, AND Home Bottom. Can you paste in your home.php or front-page.php?
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 11, 2013 at 1:02 pm #78384Steve@316 DesignMemberSorry it's taken me so long to get back to this,.. Must've forgotten about it until I went to the clients page to update something else,..
Anyways, is this what you needed? home.php
<?php
remove_action( 'genesis_loop', 'genesis_do_loop' );
add_action( 'genesis_loop', 'lifestyle_home_loop_helper' );
/**
* Add widget support for homepage. If no widgets active, display the default loop.
*
*/
function lifestyle_home_loop_helper() {if ( is_active_sidebar( 'home' ) || is_active_sidebar( 'home-left' ) || is_active_sidebar( 'home-right' ) ) {
dynamic_sidebar( 'home' );
if ( is_active_sidebar( 'home-left' ) ) {
echo '<div id="homepage-left">';
dynamic_sidebar( 'home-left' );
echo '</div><!-- end #homepage-left -->';
}if ( is_active_sidebar( 'home-right' ) ) {
echo '<div id="homepage-right">';
dynamic_sidebar( 'home-right' );
echo '</div><!-- end #homepage-right -->';
}if ( is_active_sidebar( 'home-bottom' ) ) {
echo '<div id="homepage-bottom">';
dynamic_sidebar( 'home-bottom' );
echo '</div><!-- end #homepage-bottom -->';
}}
else {
genesis_standard_loop();
}}
genesis();
Steve Adams | 316 Design | 619.726.9923
We live the lifestyles that we promote.™December 11, 2013 at 5:04 pm #78439nutsandboltsMemberOkay, I was able to get this working on a test site with some minor changes to home.php and the stylesheet.
This looks almost identical but I promise it's not. Replace your home.php with this:
<?php remove_action( 'genesis_loop', 'genesis_do_loop' ); add_action( 'genesis_loop', 'lifestyle_home_loop_helper' ); /** * Add widget support for homepage. If no widgets active, display the default loop. * */ function lifestyle_home_loop_helper() { if ( is_active_sidebar( 'home' ) || is_active_sidebar( 'home-left' ) || is_active_sidebar( 'home-right' ) || is_active_sidebar( 'home-bottom') ) { dynamic_sidebar( 'home' ); if ( is_active_sidebar( 'home-left' ) ) { echo '<div id="homepage-left">'; dynamic_sidebar( 'home-left' ); echo '</div><!-- end #homepage-left -->'; } if ( is_active_sidebar( 'home-right' ) ) { echo '<div id="homepage-right">'; dynamic_sidebar( 'home-right' ); echo '</div><!-- end #homepage-right -->'; } if ( is_active_sidebar( 'home-bottom' ) ) { echo '<div id="homepage-bottom">'; dynamic_sidebar( 'home-bottom' ); echo '</div><!-- end #homepage-bottom -->'; } } else { genesis_standard_loop(); } } genesis();
Then be sure to add this to your stylesheet somewhere:
#homepage-bottom { clear: both; }
You may need to add some padding but overall that seemed to take care of it. Will cross fingers!
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+December 16, 2013 at 2:01 pm #79546Steve@316 DesignMemberThat worked! Thank you.
Steve Adams | 316 Design | 619.726.9923
We live the lifestyles that we promote.™December 16, 2013 at 2:02 pm #79547nutsandboltsMemberIt's below in my signature. 🙂
Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
I provide development and training services for designers • Find me on Twitter and Google+ -
AuthorPosts
- The topic ‘RSS Feed icon displaying in the Wrong location’ is closed to new replies.