RSS Feed icon displaying in the Wrong location

Community Forums Forums General Discussion RSS Feed icon displaying in the Wrong location

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  nutsandbolts 7 months, 1 week ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #64985

    Steve@BHQ
    Participant
    Post count: 94

    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

    http://glennwalkerfishing.com/
    #75451

    nutsandbolts
    Moderator
    Post count: 3104

    It 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #78384

    Steve@BHQ
    Participant
    Post count: 94

    Sorry 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();

    #78439

    nutsandbolts
    Moderator
    Post count: 3104

    Okay, 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, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

    #79546

    Steve@BHQ
    Participant
    Post count: 94

    That worked! Thank you.

    #79547

    nutsandbolts
    Moderator
    Post count: 3104

    It’s below in my signature. :)


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.