theme development – how to display search term in the template full site editor

Question

i am building a template for the search page (in full site editing, therefore html and no php), and i want to have a search results heading. i have this:

    <!-- wp:group {"layout":{"inherit":true}} -->
<div class="wp-block-group">
    <!-- wp:heading {"level":1} -->
    <h1>Search Results</h1>
    <!-- /wp:heading -->
</div>
<!-- /wp:group -->

now i have 2 issues:

1- how do i get the search term to display it?

2- how can i translate the “Search Results” string?

0
Ron 2 years 2022-02-02T04:53:37-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse