• Resolved Mrskt

    (@mrskt00)


    Hello, can you share the filter which i should use to “Render custom code when no content on Search results” and for reference i will use on below code:

    add_filter('blocksy_filter_hook', function ($content) {
    if ( is_search() ) {
    $content .= "

    <center><b><h3 class='title'>Try below Google Search method as well.</h3></b></center>

    <script async src=''></script>
    <div class='gcse-search'></div>";
    }

    return $content;
    });
Viewing 1 replies (of 1 total)
  • Hello @mrskt00

    I’m really sorry to say, but we will not be able to provide assistance for implementing or debugging custom code, as per our support policy. If you require such assistance, it would be recommended to contact a knowledgeable developer.

    Thank you.

Viewing 1 replies (of 1 total)

The topic ‘Render custom code when no content on Search results’ is closed to new replies.