- This topic has 9 replies, 3 voices, and was last updated 6 years, 3 months ago by
Tom.
-
AuthorPosts
-
August 15, 2017 at 10:26 am #366533
mmarvel
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
August 15, 2017 at 11:01 am #366553Leo
StaffCustomer SupportHi there,
Can you provide a link to your site? Thanks!
August 15, 2017 at 11:08 am #366566mmarvel
August 15, 2017 at 1:32 pm #366696Tom
Lead DeveloperLead DeveloperHi there,
Are you using the Disable Elements add-on?
If not, do you have any custom functions or template files in your child theme?
August 15, 2017 at 1:48 pm #366703mmarvel
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’ );
}August 15, 2017 at 1:53 pm #366709Tom
Lead DeveloperLead DeveloperAny chance you can send me temporary admin access so I can take a look?: https://generatepress.com/contact/
August 15, 2017 at 6:01 pm #366845mmarvel
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
August 15, 2017 at 6:21 pm #366855Tom
Lead DeveloperLead DeveloperAh, your javascript in the Before Footer hook was missing the closing
</script>
tag.I added that in and everything is good now π
August 15, 2017 at 6:33 pm #366863mmarvel
Yikes. How did i miss that. Been looking at it too long.
Thanks alot.
B/R Martha
August 15, 2017 at 11:40 pm #366979Tom
Lead DeveloperLead DeveloperYou’re welcome π
-
AuthorPosts
- You must be logged in to reply to this topic.