Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The template for displaying search results pages
- *
- * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result
- *
- * @package mitckliniken
- */
- get_header();
- ?>
- <?php if (have_posts()) : ?>
- <div class="container">
- <h1 style="text-align: center; color: #0c380f" class="page-title">
- <?php
- /* translators: %s: search query. */
- printf(esc_html__('Search Results for: %s', 'mitckliniken'), '<span>' . get_search_query() . '</span>');
- ?>
- </h1>
- </div>
- <?php
- /* Start the Loop */
- while (have_posts()) :
- the_post();
- /**
- * Run the loop for the search to output the results.
- * If you want to overload this in a child theme then include a file
- * called content-search.php and that will be used instead.
- */
- get_template_part('template-parts/content', 'search');
- endwhile;
- ?>
- <div class="container">
- <?php
- the_posts_navigation(); ?>
- </div>
- <?php
- else :
- get_template_part('template-parts/content', 'none');
- endif;
- ?>
- <style>
- .search-results .search-results-row img {
- float: left;
- margin-right: 20px;
- }
- article {
- margin-top: 30px;
- }
- .entry-summary {
- padding-top: 10px;
- }
- .posts-navigation {
- margin-top: 25px;
- }
- </style>
- <?php
- get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement