| Server IP : 87.229.120.60 / Your IP : 216.73.216.245 Web Server : Apache System : Linux outside 5.4.8_Algonet_ZeroMAC_0.9.4.8 #6 SMP Mon Feb 3 20:36:07 CET 2020 x86_64 User : server ( 1002) PHP Version : 8.3.20 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/faktorteam/www/wp-content/plugins/searchwp-live-ajax-search/templates/ |
Upload File : |
<?php /** * Search results are contained within a div.searchwp-live-search-results * which you can style accordingly as you would any other element on your site * * Some base styles are output in wp_footer that do nothing but position the * results container and apply a default transition, you can disable that by * adding the following to your theme's functions.php: * * add_filter( 'searchwp_live_search_base_styles', '__return_false' ); * * There is a separate stylesheet that is also enqueued that applies the default * results theme (the visual styles) but you can disable that too by adding * the following to your theme's functions.php: * * wp_dequeue_style( 'searchwp-live-search' ); * * You can use ~/searchwp-live-search/assets/styles/style.css as a guide to customize */ ?> <?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); ?> <?php $post_type = get_post_type_object( get_post_type() ); ?> <div class="searchwp-live-search-result" role="option" id="" aria-selected="false"> <p><a href="<?php echo esc_url( get_permalink() ); ?>"> <?php the_title(); ?> » </a></p> </div> <?php endwhile; ?> <?php else : ?> <p class="searchwp-live-search-no-results" role="option"> <em><?php esc_html_e( 'No results found.', 'searchwp-live-ajax-search' ); ?></em> </p> <?php endif; ?>