• I am using the Twenty Ten theme.

    For some reason, my fourth footer widget is skipping onto the next line.

    See the link as follows:
    https://marydevenportoneill.org/

    In the footer, you can see three logos, beneath which there is the word, “test”.

    All three logos, and the word “test”, are contained in the Text widget. Any ideas why this is happening?

    Thanks in advance.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Did you remove any PHP from the footer?

    Thread Starter OldCorkonian

    (@josullivanc)

    No – not that I know of. It was working fine, that it started behaving like this somewhat out of the blue… there may have been an update in between but I am using a child theme, so that shouldn’t effect it…

    This is my child theme’s footer PHP…

    <?php
    /**
     * Template for displaying the footer
     *
     * Contains the closing of the id=main div and all content
     * after. Calls sidebar-footer.php for bottom widgets.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?>
    	</div><!-- #main -->
    
    	<div id="footer" role="contentinfo">
    		<div id="colophon">
    
    <?php
    	/*
    	 * A sidebar in the footer? Yep. You can can customize
    	 * your footer with four columns of widgets.
    	 */
    	get_sidebar( 'footer' );
    ?>
    
    			<div id="site-info">
    				<a href="<?php echo home_url( '/' ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    					<?php bloginfo( 'name' ); ?>
    				</a>
    			</div><!-- #site-info -->
    
    		</div><!-- #colophon -->
    	</div><!-- #footer -->
    
    </div><!-- #wrapper -->
    
    <?php
    	/*
    	 * Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    ?>
    </body>
    </html>

    OK, because it looks like you’re missing the ‘site-generator’ section.

    This might have effect the widget

    It should look like this, you’re missing some stuff.

    <?php
    /**
     * Template for displaying the footer
     *
     * Contains the closing of the id=main div and all content
     * after. Calls sidebar-footer.php for bottom widgets.
     *
     * @package WordPress
     * @subpackage Twenty_Ten
     * @since Twenty Ten 1.0
     */
    ?>
    	</div><!-- #main -->
    
    	<div id="footer" role="contentinfo">
    		<div id="colophon">
    
    <?php
    	/*
    	 * A sidebar in the footer? Yep. You can can customize
    	 * your footer with four columns of widgets.
    	 */
    	get_sidebar( 'footer' );
    ?>
    
    			<div id="site-info">
    				<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    					<?php bloginfo( 'name' ); ?>
    				</a>
    			</div><!-- #site-info -->
    
    			<div id="site-generator">
    				<?php
    				/**
    				 * Fires before the Twenty Ten credits in the footer.
    				 *
    				 * @since Twenty Ten 1.0
    				 */
    				do_action( 'twentyten_credits' ); ?>
    				<a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'Semantic Personal Publishing Platform', 'twentyten' ); ?>"><?php printf( __( 'Proudly powered by %s.', 'twentyten' ), 'WordPress' ); ?></a>
    			</div><!-- #site-generator -->
    
    		</div><!-- #colophon -->
    	</div><!-- #footer -->
    
    </div><!-- #wrapper -->
    
    <?php
    	/*
    	 * Always have wp_footer() just before the closing </body>
    	 * tag of your theme, or you will break many plugins, which
    	 * generally use this hook to reference JavaScript files.
    	 */
    
    	wp_footer();
    ?>
    </body>
    </html>

    Copy this code and replace your footer.php file with it.

    Thread Starter OldCorkonian

    (@josullivanc)

    Isn’t the site-generator just for the “Powered by WordPress” credit? Which I wanted to remove.

    Either way, I tested with your code, and the same issue. It just added in the credit, but “test” stayed in the same place…

    I did see it added when you tried the code, but the ‘powdered by’ didn’t look like it should have.

    Also you can remove that section with simple CSS not having to remove PHP.

    I guess I not sure what you got going on there. I tested the same theme with your images and text and it worked for me fine.

    Thread Starter OldCorkonian

    (@josullivanc)

    It’s very strange, I have no idea what has caused it. I certainly didn’t edit the PHP. It was working fine, and then when I checked it today, it had changed. Maybe something in the recent update? I don’t know.

    Thanks for your suggestions – at this point I think it’s safe to say that it’s not an issue in footer.php?

    Same problem, one day they worked, next day they stopped! Did you ever figure it out?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Widgets] [Twenty Ten] Fourth footer widget skipping a line’ is closed to new replies.