Forums › Forums › Search & Filter Pro › How to keep formatting of quotes?
Tagged: Formatting, quotes
- This topic has 3 replies, 3 voices, and was last updated 6 years, 4 months ago by Trevor.
-
Anonymous(Private) June 29, 2018 at 8:42 am #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(Private) June 29, 2018 at 8:18 pm #181659Hi Boldizsár
What
display method
are you using for your search form?Thanks
Anonymous(Private) June 30, 2018 at 7:58 am #181682First 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(Private) July 1, 2018 at 6:35 am #181690Hi
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>
-
AuthorPosts