• Hi,

    I am trying to remove the footer using this via Code Snippets plugin but it is not working. Any idea?

    remove_action( 'estar_footer', 'EStar\Structure::render_footer' );

Viewing 1 replies (of 1 total)
  • Hi @srikat ,

    That code might run before the footer is hooked, so it removes nothing. I’d suggest changing it to:

    add_action( 'template_redirect', function() {
    	remove_action( 'estar_footer', 'EStar\Structure::render_footer' );
    } );
Viewing 1 replies (of 1 total)
  • The topic ‘Removing the footer’ is closed to new replies.