• Hey. Thanks for a great theme.

    I have just 1 problem..

    Due to CSS reason, I want move location of <footer> tag which comes on the bottom of <body> tag to bottom of <div id=”page”></div>.

    Problem is, I don’t know what should I edit. I tried to move position of
    <php get_footer();?> in home.php, page.php but no success. Could you help me what should I do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello there,

    The safe way of editing the footer.php file is use a child theme. We have a premade one for Sydney, which can be downloaded from this link. Duplicate the main theme’s footer.php file to the child theme folder.

    Now you can move the footer.site-footer block to the line below </div><!-- #page -->

    Your final child theme’s footer.php would look like this:

    
    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #content div and all content after
     *
     * @package Sydney
     */
    ?>
    			</div>
    		</div>
    	</div><!-- #content -->
    
    	<?php do_action('sydney_before_footer'); ?>
    
    	<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
    		<?php get_sidebar('footer'); ?>
    	<?php endif; ?>
    
        <a class="go-top"><i class="fa fa-angle-up"></i></a>
    
    	<?php do_action('sydney_after_footer'); ?>
    
    </div><!-- #page -->
    
    <footer id="colophon" class="site-footer" role="contentinfo">
    	<div class="site-info container">
    		<a href="<?php echo esc_url( __( 'https://wordpress.org/', 'sydney' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'sydney' ), 'WordPress' ); ?></a>
    		<span class="sep"> | </span>
    		<?php printf( __( 'Theme: %2$s by %1$s.', 'sydney' ), 'aThemes', '<a href="https://athemes.com/theme/sydney" rel="designer">Sydney</a>' ); ?>
    	</div><!-- .site-info -->
    </footer><!-- #colophon -->
    
    <?php wp_footer(); ?>
    
    </body>
    </html>
    

    Afterwards, install and activate it.

    Once activated, customizer’s settings might not be loaded. To sync it, switch back to main theme. Install and activate the Customizer Export/Import plugin. Visit Appearance > Customize; and export the settings. Activate child theme and import the settings file.

    Regards,
    Kharis

    Thread Starter oehqoehfo

    (@oehqoehfo)

    Thank you for help!

    You’re welcome!

    Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

    Regards,
    Kharis

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘change the location of contents in footer.php ?’ is closed to new replies.