Site logo

Archived topic

missing footer and footer widget after theme update

9 replies · Started by mmarvel on August 15, 2017

Viewing posts 1–10 of 10

Hi

I updated my theme today and am now missing the footer on all my pages.

I have tried both the parent and child theme for generate press and the footer is still missing.

Please advise.

Thanks, Martha

Hi there,

Can you provide a link to your site? Thanks!

Hi there,

Are you using the Disable Elements add-on?

If not, do you have any custom functions or template files in your child theme?

Hi

I checked and deactivated the Disable Elements but that did not seem to fix my issue.

I do have a child functions.php file but nothing else. I put in the generate press optimized suggestions in the file. Here is an example.
<?php
// Exit if accessed directly
if ( !defined( 'ABSPATH' ) ) exit;

// BEGIN ENQUEUE PARENT ACTION
// AUTO GENERATED - Do not modify or remove comment markers above or below:

// END ENQUEUE PARENT ACTION
// Use only need fontawesome icons
add_filter( 'generate_fontawesome_essentials', 'tu_fontawesome_essentials' );
function tu_fontawesome_essentials() {
return true;
}
//remove query strings
add_filter( 'style_loader_src', 'generate_remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'generate_remove_cssjs_ver', 10, 2 );
function generate_remove_cssjs_ver( $src ) {
if( strpos( $src, '?ver=' ) )
$src = remove_query_arg( 'ver', $src );

return $src;
}

//remove emojis
add_action( 'init', 'generate_disable_wp_emojicons' );
function generate_disable_wp_emojicons()
{
// all actions related to emojis
remove_action( 'admin_print_styles', 'print_emoji_styles' );
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' );
remove_filter( 'the_content_feed', 'wp_staticize_emoji' );
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' );
}

Hi Tom,

I think i finally know what's broken but no idea why. When i disable the GP Hooks my footer and footer widget work.

I'll send access via your contact pg.

Thanks. Martha

Ah, your javascript in the Before Footer hook was missing the closing </script> tag.

I added that in and everything is good now :)

Yikes. How did i miss that. Been looking at it too long.

Thanks alot.

B/R Martha

You're welcome :)

This archived topic is closed to new replies.