Site logo

Archived topic

hook-block hook doesn't appear in search results

6 replies · Started by Emanuele on July 21, 2021

Viewing posts 1–7 of 7

Hi,
I created an element of type hook-block hooked 'after_header_content', which contains the site logo, shortcode for the search plugin and two icons with links. 'Entire website' view rules.
The system works everywhere except the search result page, where it inserts the div but empty, do you have any idea why?
If you need more information let me know many thanks.

Hi there,

hmmm.... woo search results seem to do some very odd things.

Can you try adding this PHP Snippet:

add_filter( 'generate_elements_custom_args', function( $args ) {
    $args['suppress_filters'] = true;

    return $args;
} );

Hi David,
thank you so much it works perfectly.
what strange things? can you give me some examples?
Your advice is always very useful and much appreciated.
For all the staff ... you are the best.
thank you

Just this kind of thing, we're a Hook for some reason doesn't fire for any particular reason. But this is the second reported issue like this, so we're looking into it!

Thanks for the replies.

You're welcome

This archived topic is closed to new replies.