• Hello, I am using this excellent theme for a church website and it is fantastic.

    There is one tweak I have been trying to make on my own and I’ve been unable to find the correct place to edit. On the search results page, the title font is quite large, and I would like to add a line for the author/speaker to also display in the results.

    Can anyone direct me to the correct place for editing the search result page? I’ve searched through help topics and the theme files and have not found it yet. Any assistance is deeply appreciated. Thank you!

    Best regards,
    Bethany

    • This topic was modified 2 years, 5 months ago by goaliegurl.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author Anders Norén

    (@anlino)

    Hi @goaliegurl,

    Glad you like it! You can reduce the font size of the titles on the results page with the following CSS:

    .search-results .post-title { font-size: 1.25em; }

    Adding new output to the results page is a bit more difficult. You’d need to either copy over the content.php file to your child theme and add the output there, or add an action to the hemingway_after_post_meta hook to output the author there. The latter would look like this in your child theme functions.php file:

    add_action( 'hemingway_after_post_meta', function( $post_id ) {
    
    	if ( ! is_search() ) return;
    
    	echo '<div class="post-preview-author">' . get_the_author_posts_link() . '</div>';
    
    } );

    You can then style the output with the .post-preview-author CSS class.

    — Anders

Viewing 1 replies (of 1 total)
  • The topic ‘How to customize search page?’ is closed to new replies.