Jump to content
TNG Community

The footer on my WordPress site isn't showing up on the TNG theme


Houssine

Recommended Posts

The footer on my WordPress site isn't showing up on the TNG theme, even though the header is working correctly. This is the code I'm using in the WPTNG-footer.php file.
tng version 15
and i'm use code mr kloosterman

<?php
// Call the WordPress/Theme footer in the TNG pages.
get_footer('TNG');

// WordPress/Theme footer; uncomment get_sidebar() only if you want to have the sidebar displayed in TNG pages.
//get_sidebar();

// Newer versions of TNG include some important JavaScript code in the footer, so you need to include these TNG functions or certain things won't work.

global $text, $tng_version, $flags;

$flags['basicfooter'] = true;

echo tng_footer($flags);
?>

 

Link to comment
Share on other sites

  • 4 weeks later...
On 11/8/2025 at 9:39 AM, Houssine said:

Has anyone encountered this problem?

What WP theme are you using?

I have this in my WPTNG-footer.php file, and it works.
 

<?php
// Call the WordPress/Theme footer in the TNG pages
get_footer('TNG');
// WordPress/Theme footer; uncomment get_sidebar() only if you want to have the sidebar displayed in TNG pages
// get_sidebar();

// Newer versions of TNG include some important JavaScript code in the footer, so you need to include these TNG functions or certain things won’t work.
// global $text, $tng_version, $flags;
// $flags[‘basicfooter’] = false;
// echo tng_footer($flags);
?>

Try commenting out the bottom three lines to see if it works. I had to keep them commented out to avoid the website from not going full-width.

Link to comment
Share on other sites

  • 3 weeks later...
Jim Williamson

I'm a little late seeing this, and really can't be much help. 

The footer displays correctly on my site as it exists now, and I've had no issues though the previous iterations. 

It currently reads this way, and has for at least almost 8 years now, through various themes:

_____________________________________

<?php
// Call the WordPress/Theme footer in the TNG pages
get_footer('TNG');
// get_sidebar (); /*remarked out by Jim 2/8/17 */
global $text,$flags;
$flags['basicfooter'] = true;
echo tng_footer($flags);
?>

_________________________________________________


Try swapping themes (make a good backup first) and see if it comes up

Jim Williamson

www.mygenealogy.info

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...