Yes, that’s correct. So if you wanted this replacement to happen on all requests to example.org. You would create or edit the site config file example.org.txt and add those lines to it.
Exactly where do we put find_string and replace _string in the txt file? Does it has to be in certain tags or can it be anywhere in that text file? Can we also put html code in the find and replace?
You’ll still be left with Item 1, 2 and 3 if you only remove the <strong> element. But XPath can still help you. You can use two strip directives. First to remove the <ul> element after the “Related” text and then to remove the “Related” text itself:
Hi! If the rss feed is on a subdomain do I create a custom txt file with the subdomain url? The original site resides on the original domain but the rss feed resides on a sub domain. Because its a new custom txt file it is blank. So:
find_string: TEST
replace_string:
If it finds the “TEST” anywhere on that feed including the title of that feed then it should delete it, correct?
But after rendering it with full-text RSS all the titles has “Medical News Today:” before the actual title.
I want to delete the “Medical News Today” but keep the original title. I did find and replace and even the strip but its not working for me. Also because the rss feed resides on a subdoamin do I need to name the custom site config after the subdomain???
If the rss feed is on a subdomain do I create a custom txt file with the subdomain url? The original site resides on the original domain but the rss feed resides on a sub domain.
No, you should create the custom site config file with domain that is actually used to retrieve the web page. So for example, if feeds.example.org/rss is the feed URL and it contains items which load from example.org, your site config file should be example.org.txt and not feeds.example.org.txt.
This is also true if there’s redirecting happening for whatever reason, e.g. a URL shortener is used or an analytics service at a different domain. So if feeds.example.org/rss has items with URLs of the form https://bit.ly/xyz which redirect to example.org/... Full-Text RSS will follow the redirect(s) and look for a site config file matching the final URL (in this example example.org.txt).
But after rendering it with full-text RSS all the titles has “Medical News Today:” before the actual title. I want to delete the “Medical News Today” but keep the original title.
When given a feed, Full-Text RSS prioritises the item titles in the feed over the title extracted from the item URL. But in situations like this, you can tell Full-Text RSS to use the titles extracted from the articles instead of the titles found in the feed. To do that you’d pass:
&use_extracted_title=1
In this case, the extracted titles don’t contain the text you’re trying to remove (they only appear in the feed), so there’s really nothing else to do with the site config file. The final URL simply becomes something like this: