Nothing appearing in the footer

This is my site

Nothing is appearing in my footer.

I have placed some widgets in the footer but nothing is appearing.

please help me asap.

Well looking at the code, I can see a div with the class “footer”, but it contains nothing. It appears to be a Wordpress site, but I’m not able to help you with why it isn’t outputting the code. Which widgets are you using?

yes it is wordpress site.

I am using recent posts widget.

what if I put some php wordpress code related to the posts.

that should solve the issue. but what code? I dont know. :frowning:

As I mentioned elsewhere, you should first validate your code. I don’t know whether or not the errors have any bearing on this particular problem, but the first stage in any trouble-shooting should always be to eliminate coding errors.

Your <footer> appears at the bottom of the page, after numerous scripts. (The scripts should be the last thing, immediately before the closing </body> tag.) As @chrisofarabia says, it is currently empty.

[quote=“Nauman_Tanwir, post:4, topic:215673”]
what if I put some php wordpress code related to the posts.
[/quote]Sorry - I don’t understand what you’re suggesting here.

What content are you expecting to be displayed in the footer? Just the output from the “latest posts” widget, or ishould there be more?

2 Likes

Earlier the body tag was closing before footer tag. So, I have corrected that.

Yes, I just want the output from recent/latest posts.

There are still 24 errors showing in the validator.

Out of curiosity, I fired up my WP sandpit and poked around in the back office. There is a section in there dedicated to widgets that seems specifically focused on the footer area. Is that how you’re inserting your widgets, or are you hand-crafting your PHP to generate what you need?

No, I am putting them under footer widget section

And are there blog posts which should be appearing there?

And more importantly, are you sure the theme supports that widget?

yes there are

yes, I think I am.

We need to see the themes footer.php (or its equivalent) code.

A link to the page, except for seeing problems with the generated output, does not reveal any PHP code.

Hi, thanks for replying.

this is my themes footer.php code

<?php
    /**
     * footer.php
     * The footer used in loom
     * @author TommusRhodus
     * @package loom
     * @since 1.0.0
     */
   
    /**
     * Define chosen footer style
     */
    $footer = get_option('footer_layout', 'multiwidget');
   
    if( isset($post->ID) ){
        ( get_post_meta($post->ID, '_ebor_single_footer', 1) ) ? $footer = 'singlewidget' : $footer = get_option('footer_layout', 'multiwidget');
    }
   
    /**
     * Get chosen footer style
     */
    get_footer( $footer );
?>
 
</div><!-- /.body-wrapper -->
 
<?php
    if( get_option('slideout_shortcode') )
        get_template_part('inc/content','slideout');
       
    wp_footer();
?>
 
</body>
</html>

http://pastebin.com/gVPEWC7d

thanks

this is the theme I am using.

The name of the template I am using for homapage is “homepage”.

This might help you guys more in finding the solution

thanks again.

killashee.zip (2.7 MB)

As I’ve mentioned before, I don’t use WordPress, but you have both home.php and index.php in that directory. I suspect that may be causing conflicts. The normal default for a homepage is index (with whatever extension), and it appears that is what your theme expects you to be using.

	/**
	 * index.php
	 * The main post loop in loom
	 * @author TommusRhodus
	 * @package loom
	 * @since 1.0.0
	 */

I do understand thats the case in non wordpress projects.

But perhaps, in wordpress its not like that.

I single file is divided into several files.

thanks again.

Perhaps? Don’t you think you should make sure?

I understand WordPress uses various includes to create the page, but home and index don’t seem to me to be includes. (And, as far as I’m aware, if both exist in the same directory, Apache will serve index as the home page.)

Unless specified as otherwise - default -

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
    DirectoryIndex index.php index.html 
</IfModule>