Forums Forums Search & Filter Pro How to keep formatting of quotes?

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #181615

    Hello,

    I’d like to display my results as blockquotes, keeping the very same formatting, links etc. that the original posts have (I’d like to create a filterable quote page).

    This is how they originally look: https://hamvasbela.hu/idezetek/
    And the way they look as results: https://hamvasbela.hu/quote-results/

    Is there a way I can make the latter post format look identical with the former one?

    I’m not experienced in coding, so please help me in detail.

    Thank you!

    Ross Moderator
    #181659

    Hi Boldizsár

    What display method are you using for your search form?

    Thanks

    Anonymous
    #181682

    First I used the shortcode method, then tried the custom one using an ajax containar, but didn’t really know what to insert there (.post-container quoteblock?).
    Now I am using the shortcode method again with some css formatting: I can make the letters and line heights the same, but I don’t know what to do with the links in the original posts. Also, the layout of the posts would be also important, since they are literary texts.

    What would you use to keep all the formatting?

    Trevor
    #181690

    Hi

    Sorry I was out of the office on Friday so I am catching up over the weekend. You need to have followed the ‘Customising the Results’ on this documentation page.

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/

    In the results.php file is this line:

    <p><br /><?php the_excerpt(); ?></p>
    

    The excerpt strips all formatting away. The only way to keep links, formatting etc. is to replace that code with something like this:

    <div class="entry-content"><?php the_content();?></div>
    
Viewing 4 posts - 1 through 4 (of 4 total)