• Resolved AlanPecan

    (@alanpecan)


    Hi there,

    I am working on a search results page and it seems to be working good but there are two things that I am needing help with in removing in the results.

    Site: http://panamacitypopwarner.org/paas

    Put in search field – JCB

    1) There is a entry title bar (blank) overlapping the bottom of the image in the results. How do I remove this bar?

    2) How do I make the image non-active so it doesn’t allow the user to click it? If it can’t be disabled then how can i get it to pop-up as a new tab item?

    Sincerely,

    Alan Pecan

Viewing 2 replies - 1 through 2 (of 2 total)
  • use this CSS on your style.css file

    .entry-header {
    display: none;
    }

    But that will hide the block on your single page too, to protect this you have to modify search template.

    2) For that you have modify your search result template.

    Thread Starter AlanPecan

    (@alanpecan)

    Hi The Grey Parrots,

    Thanks for the CSS item. It worked. As for the making the image go to a pop window (new tab) when the user clicks the image or just removing the able to click the image. How do I modify search template.

    <?php
    /**
    * The template for displaying Search Results pages
    *
    * @package WordPress
    * @subpackage Twenty_Fourteen
    * @since Twenty Fourteen 1.0
    */

    get_header(); ?>

    <section id=”primary” class=”content-area”>
    <div id=”content” class=”site-content” role=”main”>

    <?php if ( have_posts() ) : ?>

    <header class=”page-header”>
    <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘twentyfourteen’ ), get_search_query() ); ?></h1>
    </header><!– .page-header –>

    <?php
    // Start the Loop.
    while ( have_posts() ) : the_post();

    /*
    * Include the post format-specific template for the content. If you want to
    * use this in a child theme, then include a file called called content-___.php
    * (where ___ is the post format) and that will be used instead.
    */
    get_template_part( ‘content’, get_post_format() );

    endwhile;
    // Previous/next post navigation.
    twentyfourteen_paging_nav();

    else :
    // If no content, include the “No posts found” template.
    get_template_part( ‘content’, ‘none’ );

    endif;
    ?>

    </div><!– #content –>
    </section><!– #primary –>

    <?php
    get_sidebar( ‘content’ );
    get_sidebar();
    get_footer();

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Search Page Results’ is closed to new replies.