In the Divi 4.9.10 the respective line number to patch is 1913.
PDF Search Results: Titles and Excerpts
-
@EpsilonAdmin: thanks for your advice. I'll get the Avada fix done, and let you know if this solves the excerpts (text) issue.
Aa a trial, I've amended the Titles of the first two Journals on our website, and WPFTS now displays these titles, so it appears that this will solve the WPFTS title issue.
I'll be going through all of our uploaded Journals in the coming weeks, checking for significant OCR errors, and correcting them. We may decide to rename the files and links during that process, but amending the title seems to work anyway.
I'm attaching pdf copies of our first two Journals. They were very simple back in 1955, but duplicated, so I've had quite a lot of work to do correcting the OCR text in these. The uncorrected version, but with the title updated, is still on our website. One error is that "Wimbledon" is the correct word in the attached pdf of Journal 001, but the website version has "7imbledon". If you search for "7imbledon" on our website, it should bring up just one result, in Journal 001.
I tried to upload the two Journals (see below), but got an Error message stating that Uploads are Disabled.
Thanks again, Nick
![alt text][0_1597754839656_Journal 001 - January 1955.pdf](Uploading 100%)
[0_1597754881159_Journal 002 - April 1955.pdf](Uploading 100%) -
Hi @Nick
Please try to upload the files again. I've enabled uploads.
-
Thanks. I've now had the Avada fix applied, and the 300 character text is displaying. Great!
I'm attaching the two files mentioned above. These are the corrected versions, so are slightly different to those on the website. In particular, in the Document Properties of the website file, the filename is just repeated (is this done automatically?), whereas on the corrected version I have amended the title to something more meaningful. In both cases, it is the Title that is displayed in the search results.Journal-001 Jan 1955.pdf Journal-002 Apr 1955.pdf -
Hi @Nick
Did you solve the issue? I think we can extract the title from the PDF metadata. Just a little script will be required for that.
Let me know if you still looking for a solution.
Thanks!
-
Another thing we detected with the Avada theme: sometimes people changed the internal theme settings and still think the website Search works wrong because of WPFTS issues.
Well, in the Avada theme there is a Search settings (you can navigate there by Main Menu > Avada > Theme Options > Search Page). There are two options that you should care about: "Search Results Content" and "Search Results Excerpt".
These options are not conflicting with WPFTS Pro, however, if you disable the Excerpt, it will not be shown on the Search Results page.
Also, if you disable a specific post type in "Search Results Content", it will be not shown too.We would propose to set them to "On" and "All Post Types and Pages" respectively. Please see another screenshot:
Hope this will help you to avoid some issues with WPFTS Pro and Avada theme.
-
Many thanks for the advice. We've implemented it, and our search results now show in a single column across the page, which is exactly what we wanted.
-
-
Hi @Nick
This should be done via your theme's CSS styles. If you don't want to edit your theme's styles, you can use the CSS snippet which is on the Display tab in WPFTS Settings / Search & Output.For example, this CSS should work for you
#main .post h2.fusion-post-title a { font-size: 21px; } #main .post h2.fusion-post-title { margin-bottom: 5px; }
You could justify 21px and 5px to make a different title size and the bottom margin respectively.
-
@EpsilonAdmin said in PDF Search Results: Titles and Excerpts:
#main .post h2.fusion-post-title a {
font-size: 21px;
}
#main .post h2.fusion-post-title {
margin-bottom: 5px;
}Thank you for your further advice. I added your code to the end of the code in the Custom CSS Styling dialog, but decided that a font-size of 20px, and a margin-bottom of 0px, worked best for our website. The results can be seen by inserting some text (try "Worcester") in the search box that is top-right here: https://rchs.org.uk/
-
Great, thanks!