Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <header class="page-header">
- <?php
- $allsearch = new WP_Query("s=$s&showposts=0");
- $asfp = $allsearch->found_posts;?>
- <h1 class="page-title"><?php echo $asfp ?><?php printf( esc_html__( ' posts for: %s', 'webovkar' ),
- '<span>' . get_search_query() . '</span>' ); ?></h1>
- <?php if($asfp < 1) :?>
- <script>
- (function searchAgain(){
- var e = document.querySelector('#search-section').classList;
- e.add("visible");
- }());
- </script>
- <?php endif; ?>
- </header><!-- .page-header-->
Add Comment
Please, Sign In to add comment