• Resolved emilkaa

    (@emilkaa)


    When I am using the search option, search results are returned shortened and stripped of their formatting. Is there a quick fix to display all posts under search results in their original style?

    I know this is possibly not the most efficient, etc, but it is just my personal blog about my kids used by family only and this is how we would prefer the search function to operate to eliminate number of clicks.

    I do apologize for posting so many questions!

    webiste: https://szmerkolandia.pl

Viewing 3 replies - 1 through 3 (of 3 total)
  • sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    If you have not yet done so, I would suggest creating a child theme so that any customizations you make will not be overwritten by a future theme update.

    Child Themes
    Child Theme creation plugins

    Create the child theme (if you haven’t) and copy content.php over from the Ryu parent theme into the child theme folder. Find this part

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    		<div class="entry-summary">
    			<?php the_excerpt(); ?>
    		</div><!-- .entry-summary -->

    and change entry-summary to entry-content in both places, and then change the_excerpt to the_content so that it looks like this:

    <?php if ( is_search() ) : // Display full content for Search ?>
    		<div class="entry-content">
    			<?php the_content(); ?>
    		</div><!-- .entry-content -->

    Note that I changed the comment also so that it indicates full content is shown for search

    Thread Starter emilkaa

    (@emilkaa)

    it works!!!!!!!!!!!!

    sacredpath, I love you! (just dont tell my husband!)
    Thank you soo much! i didnt know there are so many helpful people here!
    Thank you!!!!!!!!!!

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    You are welcome, and I won’t tell him. He may be bigger and stronger than me. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘search posts to fully display’ is closed to new replies.