Replacement Footer.php

Hi, I’m quite a newbie to Wordpress and I think I might have edited a CSS file wrong in the Editor (Dashboard > Appearance > Editor) and now my homepage looks really off. All of the text and images are in place but they aren’t styled.

Can you send me the default footer.php file so I can test if it was that file?

Thank you in advance.

Btw - my website is www.hannahdossary.com but is not live yet so you won’t be able to view it. I’ve attached a screenshot.

Even when i try a live preview of another theme to check if its the theme files, it still comes up weird.

I’m not sure where it went wrong.

Hello,

If you can provide me temporary admin dashboard access I can try to locate and fix the issue directly.

I cannot see the website so I can’t do much about it, but I suspect that you messed the @import in the Appearances > Editor > Style.css and now the main.min.css file is not loaded anymore.

Try changing the style.css code to the default one and see if it makes any difference:

/*
Theme Name: Illdy
Theme URI: https://colorlib.com/wp/themes/illdy/
Author: Colorlib
Author URI: https://colorlib.com
Description: Illdy is a free premium one page WordPress theme.
Version: 1.0.15
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: illdy

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@import 'layout/css/main.min.css';
@import 'layout/css/custom.min.css';

Best regards

Hello,

If you can provide me temporary admin dashboard access I can try to locate and fix the issue directly.

I cannot see the website so I can’t do much about it, but I suspect that you messed the @import in the Appearances > Editor > Style.css and now the main.min.css file is not loaded anymore.

Try changing the style.css code to the default one and see if it makes any difference:

/*
Theme Name: Illdy
Theme URI: https://colorlib.com/wp/themes/illdy/
Author: Colorlib
Author URI: https://colorlib.com
Description: Illdy is a free premium one page WordPress theme.
Version: 1.0.15
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: illdy

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

@import 'layout/css/main.min.css';
@import 'layout/css/custom.min.css';

Best regards

Ahh yes that worked! thanks so much! I must have deleted everything after

This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */

Back to normal. Will not be messing around with that file now.

All the best, H

Sorry again, regarding the same topic, the footer is still missing (see screenshot).
Can you please send me how the footer.php file should look?

Thanks in advance!

Hello,

Im glad everything is alright now.

This is the footer content.
You should be able to confront the differences by downloading the theme again and compare:

<?php
/**
 *	The template for dispalying the footer.
 *
 *	@package WordPress
 *	@subpackage illdy
 */
?>
<?php
$display_copyright = get_theme_mod( 'illdy_general_footer_display_copyright', 1 );
$footer_copyright = get_theme_mod( 'illdy_footer_copyright', __( '&copy; Copyright 2016. All Rights Reserved.', 'illdy' ) );
$img_footer_logo = get_theme_mod( 'illdy_img_footer_logo', esc_url( get_template_directory_uri() . '/layout/images/footer-logo.png' ) );
?>
		<footer id="footer">
			<div class="container">
				<div class="row">
					<?php
					$the_widget_args = array(
						'before_widget'	=> '<div class="widget">',
						'after_widget'	=> '</div>',
						'before_title'	=> '<div class="widget-title"><h3>',
						'after_title'	=> '</h3></div>'
					);
					?>
					<div class="col-sm-2">
						<?php
						if( is_active_sidebar( 'footer-sidebar-1' ) ):
							dynamic_sidebar( 'footer-sidebar-1' );
						else:
							the_widget( 'WP_Widget_Text', 'title='. __( 'Products', 'illdy' ) .'&text=<ul><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Our work', 'illdy' ) .'">'. __( 'Our work', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Club', 'illdy' ) .'">'. __( 'Club', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'News', 'illdy' ) .'">'. __( 'News', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Announcement', 'illdy' ) .'">'. __( 'Announcement', 'illdy' ) .'</a></li></ul>', $the_widget_args );
						endif;
						?>
					</div><!--/.col-sm-3-->
					<div class="col-sm-2">
						<?php
						if( is_active_sidebar( 'footer-sidebar-2' ) ):
							dynamic_sidebar( 'footer-sidebar-2' );
						else:
							the_widget( 'WP_Widget_Text', 'title='. __( 'Information', 'illdy' ) .'&text=<ul><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Pricing', 'illdy' ) .'">'. __( 'Pricing', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Terms', 'illdy' ) .'">'. __( 'Terms', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Affiliates', 'illdy' ) .'">'. __( 'Affiliates', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Blog', 'illdy' ) .'">'. __( 'Blog', 'illdy' ) .'</a></li></ul>', $the_widget_args );
						endif;
						?>
					</div><!--/.col-sm-3-->
					<div class="col-sm-2">
						<?php
						if( is_active_sidebar( 'footer-sidebar-3' ) ):
							dynamic_sidebar( 'footer-sidebar-3' );
						else:
							the_widget( 'WP_Widget_Text', 'title='. __( 'Support', 'illdy' ) .'&text=<ul><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Documentation', 'illdy' ) .'">'. __( 'Documentation', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'FAQs', 'illdy' ) .'">'. __( 'FAQs', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Forums', 'illdy' ) .'">'. __( 'Forums', 'illdy' ) .'</a></li><li><a href="'. esc_url( '#' ) .'" title="'. __( 'Contact', 'illdy' ) .'">'. __( 'Contact', 'illdy' ) .'</a></li></ul>', $the_widget_args );
						endif;
						?>
					</div><!--/.col-sm-3-->
					<div class="col-sm-4">
						<?php if( $img_footer_logo ): ?>
							<a href="<?php echo esc_url( home_url() ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" class="footer-logo"><img src="<?php echo esc_url( $img_footer_logo ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /></a>
						<?php endif; ?>
						<?php if( $display_copyright == 1 ): ?>
							<p class="copyright"><span data-customizer="copyright-credit"><?php printf( '%s <a href="%s" title="%s" target="_blank">%s</a>.', __( 'Theme:', 'illdy' ), esc_url( 'https://colorlib.com/wp/themes/illdy' ), __( 'Illdy', 'illdy' ), __( 'Illdy', 'illdy' ) ); ?></span> <?php echo illdy_sanitize_html( $footer_copyright ); ?></p>
						<?php else: ?>
							<p class="copyright"><?php echo illdy_sanitize_html( $footer_copyright ); ?></p>
						<?php endif; ?>
					</div><!--/.col-sm-3-->
				</div><!--/.row-->
			</div><!--/.container-->
		</footer><!--/#footer-->
		<?php wp_footer(); ?>
	</body>
</html>

Regards

brilliant! Thank you :slight_smile: