[Resolved] missing footer and footer widget after theme update

Home Forums Support [Resolved] missing footer and footer widget after theme update

Home Forums Support missing footer and footer widget after theme update

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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

    #366553
    Leo
    Staff
    Customer Support

    Hi there,

    Can you provide a link to your site? Thanks!

    #366566
    mmarvel
    #366696
    Tom
    Lead Developer
    Lead Developer

    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?

    #366703
    mmarvel

    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’ );
    }

    #366709
    Tom
    Lead Developer
    Lead Developer

    Any chance you can send me temporary admin access so I can take a look?: https://generatepress.com/contact/

    #366845
    mmarvel

    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

    #366855
    Tom
    Lead Developer
    Lead Developer

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

    I added that in and everything is good now ๐Ÿ™‚

    #366863
    mmarvel

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

    Thanks alot.

    B/R Martha

    #366979
    Tom
    Lead Developer
    Lead Developer

    You’re welcome ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.