Real-Time Find and Replace for WordPress

Real-Time Find and Replace Plugin

Introduction

This plugin allows you to dynamically (i.e. at the time when a page is generated) replace code and text from themes and other plugins with code and text of your choosing before a page is delivered to a user's browser.

Because the find and replace happens in real-time no changes are needed to plugins or themes which means upgrades remain easy!

Here are some examples:

  1. Are plugins inserting redundant JavaScript files such as multiple versions of jQuery? Get rid of all but one!
  2. Want to change the URLs of JS or CSS files, including those inserted by plugins, to load from a CDN instead of locally? No problem!
  3. Want to tweak how Woocommerce product pages display headings without modifying the template? It's easy.
  4. Don't like the “Category:” text that the Dagon Design Sitemap plugin puts in front of every category? Remove it!
  5. Annoyed by the link that Global Translator adds to every page? Remove it!
  6. Have you noticed that the Sociable plugin doesn't correctly display the Twitter image? No problem, insert it!
  7. Don't like the link that the Photodropper plugin inserts with every image? It's out of there!

And remember, all of the above can be done WITHOUT modifying theme or plugin files so you'll always be able to upgrade them without having to worry about losing custom edits.

Real-World Examples

First of all, the interface (shown below) is pretty straightforward. On the left is where you specify what to search for. On the right is what, if anything, you want to replace it with. And in the middle you can indicate whether you're specifying a standard rule or a regular expression i.e. with pattern matching.

1. Have you ever noticed that Google is picking up multiple versions of your pages with different replytocom parameters? This can result in a lot of duplicate content. There are have been a bunch of suggestions on how to fix this including redirects, disallow entries in your robots.txt file, and dynamic parameter settings in Google Webmaster Tools. With the Real-Time Find and Replace plugin you can keep Google from finding these URLs entirely while still keeping the commenting functionality. Just add this rule:

?replytocom= replaced with #replytocom=

Pretty sweet, right? Now the duplicate URLs don't even exist so you don't have to block them and you won't lose link equity.

Note: This solution works perfectly on this site with this theme. I haven't tested it exhaustively with other themes so be sure to test our your comment form after implementing.

2. Sometimes I close comments on a page or post. I don't like having the text that reads “Comments are closed”. I figure such a message is redundant since you can't enter a comment. To remove this I use this regex rule:

/<p class=\"nocomments\">(\s)*Comments are closed.(\s)*<\/p>/

Note: With regex rules you to need to start and end with a forward slash.

3. I use the Author Bio Widget, but it spits out a tag I don't use. I could modify the plugin to remove it, but that would mean that when I upgrade the plugin I'll lose the code update I made. So instead I use this rule:

<span class="bio-title"></span>

4. I want Gravatar support on this site in some areas, but I hate having the same unknown icon displayed for commenters that don't have a Gravatar image and in my case that's most of them. To keep Gravatar support on while also eliminating the image I use this regex rule:

/<img(.*)?gravatar\.com\/avatar(.*)?>/

As an added bonus, removing all of these Gravatar calls reduces page load time.

5. I use the Digg Digg plugin for displaying social media buttons. This plugin injects an unnecessary call to a big JavaScript file that just slows down the page. I remove it from the HTML code using this regex rule:

/<script(.*)?sharethis\.com\/button\/buttons\.js(.*)?<\/script>/

6. The Photodropper Plugin outputs a link to an external site for every image it adds to a post. I think this is excessive so I remove the link with this rule:

<a href="http://www.photodropper.com/photos/">photo</a> which is replaced with just "photo"

Note this technique of removing links from plugins works everywhere. I've used it for a bunch of plugins.

7. The Digg Digg plugin (mentioned above) calls a JavaScript file well above the closing body tag of the page. To help with fixing a problem related to Facebook generating pages by appending a parameter (see this discussion on the fb_xd_fragment problem) to my URLs I need to remove this JavaScript call so I can manually add it to footer.php in the right place. I remove this code with this replace rule:

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script>

Still don't see the value? Here's another write-up showing you how to use this plugin for SEO and some more real-world, but more general, examples.

Pro Version

The pro version of this plugin includes some filtering options (querystring, referrer, useragent, and post type) so you can better control when matching rules are executed. There's also a description field to help you manage your many rules.

Real-Time Find and Replace Interface

Before you buy, please note that:

  • You are required to buy one (1) license per site/domain. Additional installations on ‘localhost' do not require a separate license.
  • Due to high demand, the price has been recently increased despite what it may say elsewhere. The price is subject to change in the future.
1 Star2 Stars3 Stars4 Stars5 Stars (12 votes, average: 4.25 out of 5)
Loading...

267 Comments

  1. Hello. I download for try the free version and it's all I need.. BUT I have some problem and I would like to know if with the pro version can fix my problems.

    I do a rule where "(" be transform in "" and ")" be transform in ""
    work perfect in the post! Thanks.

    But, I have some plugins and sections in my theme where i use the "(" and the ")" and transform that other text
    Example:
    Plugin for SEO: It's take the wp_content and be proceced .. I don't want to be proceced.
    Widget: I have some widgets with text and the "(" and ")" is proceded too.. I don't want to be proceded
    Theme: I have some call to strings or customs fields and it's procedec too.

    Can the Pro Version only proced the post (the wp_content only). Thanks

    • No the plugin doesn't distinguish between differents parts the page.

    • Sorry for my bad english.... Be proceced = To be processed

  2. Hi Marios,

    I'd like to ask you if your plugin is compatible with Essential Grid (https://essential.themepunch.com/), because I download your plugin and all my images from Essential Grid disappeared from front-end.

    I checked with Essential Grid Support and they said that there is a conflict with Real Time Find and Replace.

    Is there some thing that I could do to resolve that issue?

    Thanks,

    Taciana

    • It's possible there's a conflict. I don't use Essential Grid so I don't know.

  3. Dumb question, but I am new to WP. I would like to buy the Pro version, however, I am using a managed WP service. How would I install the Pro version? I do not see it listed as a separate plugin. I don't see anywhere in the free version where a license number can be inserted.

    • You would need to download the pro version which comes as a zip file. Then, under Plugins --> Add New there's an option to upload a zip file. This is assuming your host allows plugins to be uploaded.

      • perfect - thanks!

  4. I would like to use this plugin to replace a specific image with a shortcode that I have made. Right now, I am trying to use PHP in my snippet and display the result using echo.

    For example, I have a function " echo do_shortcode( '[aptl_contact_form]') " that is wrapped between the PHP header and footer)

    However, it doesn't seem to want to do any PHP. It just outputs the same text that I entered as an HTML block comment.

    How can I work around this?

    Thanks!

    • This plugin modifies the HTML code AFTER all theme and plugin functions have executed. This includes shortcodes. So by the time my plugin executes, shortcodes have already been expanded to the final code i.e. this plugin won't "see" any shortcodes.

      • Thanks for the explanation.

        The problem is that I can't get any php to execute, even non WordPress functions i.e. "echo 'Hello world'".
        Is it possible to read HTML from a file?

        • My plugin doesn't have the capability to read HTML from a file.

        • So PHP is completely unsupported?

          I think you may have misunderstood, I am trying to render a shortcode (with PHP) not replace one.

        • I'm sure I've misunderstood :-)

          However, I think the key point is that my plugin only works on the final HTML rendered page. It doesn't see shortcodes or PHP. My plugin steps in just prior to the page being sent to the user's browser. All PHP has executed by that point and no PHP executes after my plugin is done.

  5. Hello,
    if i have 2 strings the start the same ie "when" and "when you" and i try to change the string "when" the other string is also affects, (they both in the same page) is there way to point to a whole string?

    thank you!

    • You'll need to use the regex option which allows you to get pretty specific with what to replace and what to ignore. Regex can be a little tricky though.

      • can you please give me the regex i need to enter for a specific string?
        string i.e: course access.

        • Send an email to the support address you received when you purchased the plugin. In that email include the URL where you're trying to make the replacement.

  6. Hello, I've just bought the pro version, and it doesn't replace the comment section "reply" texts.
    http://imgur.com/wNNj3oz
    How could I also replace these texts?

    • Typically the problem is one of two things: 1) the rule isn't correct or 2) what's being replaced is driven by AJAX which can't be replaced.

      If you email me a URL and the rule you're using, I can check it. The support address is in the email you received when you purchased the plugin.

  7. Hi,

    I've got a dual languages website with wpml. And it seems that with your plugin i can't replace a piece of html code with php one to manage translation. With the pro version can i filter language with url ? Pages concerned are domain.com/category/slug for one language and domain.com/fr/category/slug/ for french. If yes, please let me know how and i'll buy pro version !

    Thanks

    • Yes. The pro version allows you to restrict rules to particular URL pattern. You would use the Querystring box for the rule to apply this restriction.

      • Have you got a documentation to understand how to do that with query string ?

        • There isn't much in the way of documentation for that particular filter. Basically you put in whatever you want to match in the URL for example /en/ would restrict the rule to only executing when the URL contains /en/.

        • Oh ! Easy !
          Do i need to backup my rules before upgrading to pro ?

        • The rules will transfer automatically.

        • I'm on another domain for dev. I will directly update url on the same wordpress install when finished. Can i already install it ?

        • When the domain changes you'll need to deactivate the licence and then reactivate it. The licence can only be tied to one domain. If it doesn't work for you, just send me an email at the support address and I'll make the switch for you. Others have done the same.

  8. Hello,
    I had a website with the url like www.domain.com, now I've change the domain to www.my-domain.com.
    So all the url of the media on posts are now in error.
    So I wanted to know if your plugin could help me to modify in a easy way ( at the same time) all the urls of medias ,
    ie
    when I have https://domain.com/wp-content/uploads/2016/09/525.jpg
    it shouls automatically be replaced with
    https://my-domain.com/wp-content/uploads/2016/09/525.jpg

    Thanks a ot for your answer
    Regards

    • Yes my plugin can take care of this. You would need a rule with the Find equal to the old domain and the Replace equal to the new domain. My plugin doesn't make permanent changes though so if you deactivate it, the changes will be undone. You might want a plugin that makes these changes permanent so you don't have to worry.

  9. How can I use the User Agent option in the pro version?

    E.g. i want to show a text to all browsers/agents who are NOT "Safari (in-app)" or "Android Runtime";

    so (to show this message to the majority of the browser I neet to show something to Safari (excluding "in-app"), Firefox, Chrome, Opera, Edge and Internet Explorer Users... right?

    But how?

    • The useragent field is a simple matching filter. It unfortunately doesn't support regex or negatives. It's not very tidy, but you could do separate rules for each user-agent you want to match.

  10. Can I get it to work on the inside an RSS template? I use pro and it works like a charm on posts types, just need it to overwrite some text inside my rss feeds. I am willing to pay for the modification

    • The plugin can already make changes to an RSS feed. If you're not seeing changes, maybe your RSS feed is cached?

  11. I'm using the pro version of the plugin and I use it to replace variations of US state names with phrases. For example, !Arizona! :Arizona: and ?Arizona? are three different versions of Arizona that are replaced with different phrases for each rule. Having three different rulesfor each state, I need to use 150 different rules. The plugin will not allow me to add more than 143 rules. It's a weird number to stop at, but it won't save the 144th rule. Any ideas what could be the problem?

    • At the top of the plugin page there's this comment that addresses the issue of having a large number of rules. I think this is likely what you're experiencing:

      "If you expect to have 100+ rules, consider increasing the value of the max_input_vars setting in your php.ini file."

  12. HI

    I buy the Pro Version.

    Before using Text Replace By Scott Reilly,

    Now, i have 1000+ rules to replace.

    But I can't use your Import's format to insert the 1000+ rules.

    Can u support CSV format to Import rules?

    eg:
    Find1, Replace1
    Find2, Replace2
    Find3, Replace3

    Thank you

    • I could see that feature being useful in some cases, but there hasn't been enough demand to justify the time necessary to implement it.

      • I also need precisely this functionality, i have a list of about 600 things to replace. What are the chances of this being built any time soon? Or possible a custom build, what would that cost? Thanks! r

        • I have no plans to add this sort of import functionality. I sometimes do custom work, but most people aren't interested in paying an amount to make it worth it for me. Sorry!

  13. I'm trying to update the plugin and it keeps saying Update Failed: Could not copy file. real-time-find-and-replace-pro/real-time-find-and-replace-pro.php

    • I'm not aware of any issues, but I'll look into it. In the meantime, I'm about to resend your receipt which will include a link you can use to download the latest version, if you want.

  14. The phrase that I'm trying to replace is generated by Woocommerce, and it contains a dollar sign and a slash and dots ( $ / . )
    I can successfully test the plugin by replacing just one word of the phrase, but if I put in the entire phrase, the replacement does not occur.
    The phrase I'm trying to replace is
    "$15.00 / month with a 30-day free trial and a $1.00 sign-up fee"

    This is the regex I tried to create (with my very limited knowledge) but it still doesn't work.

    /\$15\.00 \/ month with a 30-day free trial and a \$1\.00 sign-up fee/

    Do you have any thoughts on what I'm doing wrong? Thank you.

    • Your regular expression looks good. In such cases the problem is often really small like an extra space somewhere. If you want, I can take a look at the page where this text is. You can email me at support at infolific dot com if you don't want to make the URL public.

      • Thank you Marios! The page is here:
        https://www.oasisinnerjourneys.com/product/oasis-membership/

        I also tried it with another phrase on a different page, and also failed. Both of these phrases are being generated by Woocommerce. Could that be part of the problem?

        Looking at the code of the first example, it's not straightforward text It's broken up with code:

        $15.00 / month with a 30-day free trial and a $1.00 sign-up fee

        (apologies for my slow response, I did not see the forum notification immediately)

        • I took a look at the page. I don't think the issue is related to WooCommerce. However, the HTML code is rather complicated so you're definitely going to need to use regex to for the match.

          Rather than trying to match every character exactly I think you'll need to use some catch all elements in the regex to match anything. For example, using (.*)? will match anything so something like startingcode(.*)?endingcode will help you match things and then all you need to figure out is what the startingcode and endingcode need to be to uniquely match the part of the page.

  15. Hi there,
    is the $9.95 for the Pro a one-time fee or yearly?
    Thanks.

    • One-time fee.

  16. Good afternoon,

    Quick question,
    on a template page (example: social.php) I hard code the following line and my widget shows up just fine:

    I then use your plugin to do the same thing and instead of seeing the widget all I see is the on view source.

    Any assitance would be appreciated.

    • The line you hardcoded didn't come through in your comment.

      • Can you please tell me what I need to do to post my code in here so you can view it?
        Thank you

        • Run your code through this http://www.htmlescape.net/htmlescape_tool.html before pasting it here.

    • <?php echo do_shortcode ( '[instagram-feed]' ); ?>

      • That's PHP code which needs to run on the server. My plugin works after all other PHP has finished running and the resulting HTML is generated. You use my plugin to modify the resulting HTML code i.e. the actual widget code.

        • Great, that's what I figured and it worked fine.
          Thank you for your immediate reply

  17. Hello,
    how can I remove this?

    follow us, and ....

    thanks

    • In you browser find the option to the view the source. Then locate the block of HTML that outputs the text you want to remove. Paste that block into the Find and leave the Replace blank.

      • I'm trying to delete the text between p and em tags but I can't..

        Seems that plugin don't find

        p em - text inside - em p

        • The plugin can find anything that exist in the source. When it doesn't it usually means there's something off like an extra or missing space. Make sure you view source to get the code exactly as it appears on your page. Let me know the steps you're following to get the code from your page.

      • I do it.. nothing..
        I copy (ctrl C) the code in the souce and paste (ctrl V) in Find and leave the Replace blank..

        this is the source code changed in http://www.htmlescape.net/htmlescape_tool.html:

        <p><em>seguici su ,  e </em></p>

        I have a pro version

        thanks

        • That should work. That's basic functionality for the plugin. I have to assume that the find is still not quite right. Perhaps something is encoded differently than the way it appears to you. If you send me the URL I can check it out. You can email me at support at infolific dot com.

  18. Hi I have bought the pro version, and it doing well until i when i want to change the label "view cart" and "checkout" button on the cart button on the header (http://grab-indonesia.com/famecase/). How do i change the label?

    • In your browser view the source of the page and find the HTML that represents the code/text you want to change. Look for a matching HTML block and use that as the match. In the replace section put the same block of code with whatever updates you want. Note that with shopping carts the code might change as people put items into the cart and there's a counter. So you may be better off using a regex (regular expression) which has the power to match HTML with changing values.

  19. I have the pro version and need to know how to set rules based on a URL. Do I fill out querystring? Referrer? User agent? I don't know what to do.

    • You would use the querystring field to match a URL. So if your URL is /a/b/c/ you could put in a/, b/, c/, a/b/, b/c/, or a/b/c/ and they should match.

  20. Hi, Congrats for this excellent plugin. It is helping me a lot.
    At the moment I'm testing the free version and I'm looking to apply regex rules to some specific pages . I've read in this thread there is the possibility to create different rules and apply a filter based on the URL of each page. Does the free version has this possibility? I so, could you please show me a simple example? as I'm newbie in regex.
    Thanks!!

    • URL filters are part of the pro version.

      • Thank you very much for your quick reply!!

        • I've just bought it. Thanks again

    • Hi!

      I've added several rules in my site with the Pro version and all works fine (I've finally bought two licences for a multisite web).
      But something strange happens with my calendar plugin (Events Calendar Pro): if I use the Page filter option it only affects the main calendar page (for instance /events/), but when I start navigating over the different pages generated dinamically by the calendar plugin, I see no effect (these pages are created as "/events/?tribe_paged=(number)&tribe_event_display=list". However, if I reload one of those pages (F5), then all changes are applied.

      Of course I've tried the Post-type: any option with the same results. So it seems your plugin doesn't "detects" properly these are pages to deal with.

      I've also tried using the querystring option, but I'm kind of newbie and I'm not sure how to do it. I've tried using Regex here, in order to detect all the dinamically generated pages (with the regex rule /tribe_paged.+event_display/) to filter them, but I see no results at all, (even refreshing the page here). Can I use Regex in Querystring field to detect pages with a special url format?

      So, my questions are basically two:

      1- Is there a way I can use your plugin to modify these kind of dinamically generated pages?
      2- Any info where I can learn more about how to use the querystring option? Should this work well used?

      Thank you very much for your kind support!!

      • If I had to guess I'd say that the pagination is done via AJAX which means that the dynamic code is generated and sent to the browser without it being intercepted by my plugin. As a result, the rules aren't applied. However, when you force a reload of the page then AJAX isn't used and the content can be intercepted by my plugin so you see the changes. When you paginate, does it look like the content loads "in place" without the rest of the page reloading? If so, this is AJAX.

        • Hi Marios,

          Yes, confirmed, AJAX is responsable because the underneath html code is ok.

          Luckily this special website I'm working on is to be converted finally into static html pages (for security reasons) so I've just tested and the converted html takes and shows all the rules!!
          So the only issue is that I can't "see" the changes in real time (on Worpress) for these specific dinamically generated pages until I refresh the page, but as I only need the changes to be effective in the html converted version (and it do so), that solves the problem.

          Thank you again for your quick and kind support!!

  21. I'm looking fpr a function to use the replacing in the DASHBOARD. You wrote one year before in a couple of posts that you're thinking about that feature. Is this already implemented?

    • Yes this feature exists. There's a check box where you can indicate that the replace should occur on the admin pages. You need to be very careful with this feature since you can break your admin pages with the wrong replace. If you use this feature, you should make sure you have a way to remove plugins via FTP or your host's control panel just in case.

  22. I wonder if you can uses parameters in right replacement?

    Find:
    WORD1

    Replace:
    WORD1

    Så I wonder if I can put a parameter in Replace so I only have to specify the WORD1 in find and the googlesearch link will be created.

    • I'm not 100% sure I understand the question, but you can use regex to match elements that are dynamic.

      • Can you explain how to use regex?

        • Regular expressions are complicated to explain. There have been books written on them. I've found this site helpful though:

          http://www.regular-expressions.info/tutorial.html

  23. Can I export/import my settings and fields?

    • Why would you believe anything I say? I'm apparently a liar.

  24. Hello,

    Great plug-in concept! Quick question for you -

    Does the plugin work in a page by page basis? For instance -

    can I have 2 identical pages with 'keyword x' on both pages

    and apply apply a change to one page to change it to 'keyword y' and then make it change the other page to 'keyword Z' if that makes sense.

    Also what about the Google bot. Does it do the swap out before the Google bot is able to fetch the page and read the source code?

    Thanks in advance

    • Yes you can create 2 rules and apply a filter based on the URL of each page.

      The replace happens before the page content leaves the server i.e. before any bot or browser sees the page.

  25. Hi :)

    Great plugin ... very nice work! Just a quick question ... I am testing out the free version at the moment.

    I am looking to change the naming of some CSS classes of one of my plugins ... on the free version the name changes on the frontend (as expected) ... but the css breaks, because I guess the plugins files do not reflect the name change ... so there is a mis-match.

    Will the Pro version find and replace the core plugin files also (maybe using the admin setting)? So the class change on the fronted does not break the css overall

    Many thanks in advance

    • This plugin doesn't distinguish between core and non-core files. It modifies the final rendered HTML that is delivered to the browser after core, theme, and plugin files have executed. To confirm if the plugin can/will work as expected, load the web page of interest in your browser and then view the source. If the code/text is visible when viewing the source, this plugin should be able to make modifications. Note that the plugin doesn't affect included JS or CSS files.

      • Cool ... thank you for the lighting quick reply Marios :)

        So if I am trying to change a css class name ... it won't work in that case ... because the CSS files are not altered?

        or would you expect it to work ... because the modification happens after the files have executed?

        for example on the Tribe Event Calendar Plugin https://wordpress.org/plugins/the-events-calendar/
        I wanted to change the calendar class from "tribe-events-calendar" to "tribe-events-modified-calendar"
        & the css breaks

        Thanks again

        • If the information is in a separate CSS, this plugin won't work. It can modify CSS only if the CSS is in the actual page being viewed and not pulled in from an external file.

        • Sure thing ... many thanks for the quick reply again ... much appreciated :)

          Have a great New Years!

  26. The pro version didn't work. I did what I feel was correct and when I visit my page, nothing is changed. Disappointed. Anyone else know of a find and replace plugin that works?

    • Hi Duncan,

      While it's always possible that there will be plugin conflicts, issues that have been reported to me have been things that could be fixed. If you're up for it, I recommend trying the following:

      1. Put in a very, very simple rule that replaces a single word with another word. This will help you confirm that the plugin is working.

      2. If the plugin is working, try building your rules with the simplest piece first and then expand the rule to include additional parts. If you build your rules this way you can identify where things are going wrong. For example, if you're trying to match a bunch of HTML code, start with a piece of that code and then add more and more until you have the entire match defined.

      Alternatively, if you email me the rule details and the URL on which you expect it to work, I can take a look.

  27. Hi,
    I'm having some problems with regex. Basically I'm trying to replace a feed in a list (content n.1 and so on), the problem is that while it successfully replaces the first element of the list, the other ones disappear completely, even from the html code which is pretty weird..

    This is the feed I'm using: https://www.wallflux.com/feed/1624420954440173 it's from a facebook group.

    This is the HTML after the plugin and regex replacements:
    https://justpaste.it/11gjf

    This is the HTML code when the real time s&r plugin is disabled (everything works correctly):
    https://justpaste.it/11gjl

    as you can see only the first feed content (between and ) is displayed, the other is removed.

    And this are the regex I'm using (both the search and replace ones):
    https://justpaste.it/11gjo

    I've tried everything: escaping all kinds of characters, adding a at the end, adding third (.*)? but nothing works.

    Please HELP!!! I'm going crazy. I would like to buy your plugin to use the other functions but first I need a solution for this!

    I'm using the RSS Just Better plugin if there may be some interactions (but I doubt it because when I do a "normal" search & replace without regex it works, it's only when I use regex expression that it doesn't.

    • "adding a at the end" was "adding a closing span at the end"
      The comment section replaced the tag

    • I find that sometimes .* does unexpected things. Sometimes I have better luck by searching for everything except something. This helps me ensure I don't match too much. For example, to match everything except the next double quote I would use [^"]*.

      • I tried that to not avail. I needed to lookout for the closing /span

        I've somewhat fixed this by using regular find and replace (no regex), but now I'm using 12 rules, which is bad for performance.
        Is there any hope that these issue will be fixed in the next release?
        Also it would be nice to have a built-in cache for the pro version so the rules are executed 3-4 times a day compared to every visit by using output buffering maybe.
        I feel this plugin has enormous potential with a few improvements.

        Thanks.

        • I don't know that there's a bug with the plugin rather than just an incomplete understanding of how regex works. The regex engine is part of PHP, not my own.

          As for caching, you could use a caching plugin to cache your site. If you do, the plugin won't need to execute all of the time.

  28. Hi,

    I have updated my website and when I try to activate again the plugin real-time find and replace that I bought months ago, can not activate the license.

    Could you tell me how to activate the plugin so I can work with it.

    Thank you

  29. Hi,

    Just what was needed :) but rule not needed on entire site :( Before I purchase the Pro version, is there a way that you can limit a rule to a particular page?

    Thanks,
    Carol

    • You can restrict the rules to execute on any URL that matches a particular pattern e.g. /this-is-in-the-url/ or /this/and/this/are-in-the-url/.

      • Hi Marios

        I just purchased the Pro and was able to target some different areas of text on a specific page by using "/page-name" in the 'querystring' field, works great.

        Wondering if I could use the same rule to execute on a second page, and if so, what is the syntax? I'd like to have something like this:

        querystring: /page-name and /page-name-two

        • Hi Dave. The querystring match is a "simple". So to target a second page, you'll need to create a new rule.

  30. HI, I just bought Real-Time Find and Replace Pro version 3.8
    it can't work, I activate the licence but add and remove buttons cannot work...
    rule cells are look misaligned
    My version of WP is 4.6.1-es_ES

    Please help!

    • Can you send me a screenshot? You can email me at support @ infolific.com.

  31. Nice pluging. i am looking for a plug like this.. but
    if you can add a option to your plug to find and replace automatically with cron job on givin time, its wonderful
    i couldn't find this option on any wp-plug, hope on your next update.
    its hard to admin to find and replace the text on every time.
    thanks

    • I don't see how that would be any more useful than the current real-time replacement.

      • sorry my bad, i didn't notice that real time part well, real time replacement is super awesome.

  32. Marios, I love your plugin. I use an Excel CSV importer to update our products in WooCommerce. Every time I do this, the variation description gets encoded incorrectly. I think it's encoded different than UTF-8.

    For example, the following code gets replaced:

    Original code: Stock# <strong>RESTRICTOR2</strong>

    Replaced code: <span style="font-size: x-large">Stock# <strong>RESTRICTOR2</strong></span>

    I have about 200 places on the site where I need the original code to be. If you would know of a way to replace the code back to it's original state with your plugin, please let me know. Also, the code differentiates where "RESTRICTOR2" shows up in between the <strong> tags. I don't know how to use a reg expression to account for that.

    Any help is appreciated.

    Thanks!

    • Haha. My post formatted the html code that I posted

      Original code: {Stock# RESTRICTOR2}

      Replaced code: {<span style="font-size: x-large">Stock# <strong>RESTRICTOR2</strong></span>}

      • I don't know how to format it so you will see it correctly. Anyway, anywhere the symbol, gt; shows up. Lastly, " shows up as "

    • Hi Dan,

      I've read your comments, but I don't understand what the issue is. Or rather, what might be going on with the encoding. One thing I thought I'd mention is that Excel has 3 CSV file formats. Have you tried all of them when creating the CSV file?

  33. Hello Marios Alexandrou!

    I am using your plugin for 3 weeks, works well.
    There is one issue i need your help with,

    I need the plugin to perform the replace only on desktop visits, while on mobile it will not.
    Please advice.

    • You might be able to accomplish some of this by setting the useragent to match the useragent used by different desktop browsers. It won't be 100% and you'll need to figure out what all of the useragent patterns are. In addition, if you're using a caching plugin you'll have to disable it for the particular page(s) since the cached version may be generated for mobile, but then is viewed by a user using a desktop.

      • and where to add the matching rules of useragnet browsers check? please guide me where to add it in the plugin?

        • You would specify the value in the User Agent field.

        • i mean where do i define for real-time-find-and-replace plugin to perform replace only when its desktop.
          useragent can return if user is mobile or not, i am asking where to perform changes on plugin side.
          thanks!

        • I'm not sure where the confusion is. There's a box labelled User Agent. Type in a value that defines a desktop user so that the rule will run only when there's a match.

        • Did you figured it out? I would like to have exactly the opposite. I would like to find and replace only on mobile version...

  34. I have a pre-sales question. I'm using Woocommerce and the price of products show up in Google's rich snippets. Can your plugin remove the price? and if so, how can I do a global remove of the price because the client has 100s of products.

    • This plugin can probably replace the price. I say probably because I can't be sure how your site is set up. Basically you'd need to view source using your browser and find a code snippet that matches across the site. You would then replace this snippet with a blank.

      For example if the price always appears in the code like <span id="price">$1.99</span> you would create a rule like <span>(.*)?</span> that will match every price.

      • Thank you for your quick reply. Will your example above just remove it from rich snippets or will the price also be hidden on the actual website when a customer views the product itself?

        • If you remove just the rich snippet code then the price should disappear from Google and the price will remain on the site. However, Google is smart and may still be able to determine the price and opt to show it in results. There's no guaranteed way to control what Google does. I wish there was :-)

  35. Hi

    I have the pro version and it did stop to work after the last woocommerce update.

    • What version of WooCommerce did you have prior to moving to 2.6.1?

    • In a test environment I upgraded to the latest version of WooCommerce. A simple find and replace worked as expected. I don't doubt you're encountering issues, but it could take some debugging on your side to figure things out. WooCommerce recommends the following when upgrading results in problems: https://wordpress.org/support/topic/how-to-debug-issues-after-updates?replies=1

  36. Marios: I need a way to delete a shortcode parameter dynamically. I want to be able to view the post normally by default, but view it without the parameter by clicking a link. For example:

    [gallery galleryattr="Album" link="file" ids="8420,8399,8422,8401"] THIS IS THE NORMAL SHORTCODE

    [gallery link="file" ids="8420,8399,8422,8401"] THIS IS THE DYNAMICALLY CREATED SHORTCODE

    Is this possible with your plugin? I was thinking it could be triggered with a custom querystring. Thanks!

    • My plugin won't work in this case. It's designed to execute after everything else which means shortcodes will have already been turned into whatever HTML they're meant to represent.

  37. Hi,

    I just purchased the Pro version and have a problem.

    I want to change the following sentence :
    Find : Register Replace with : Registro

    okay

    if I want to add a complete sentence
    Find : Customer register Replace with : My Account

    the result is : Customer Mi Cuenta

    How did I do it?

    Thank you

    • Are you saying that "Customer Register" is being replaced with "Customer Mi Cuenta" even though you've specified "My Account"?

      Do you have other rules or just these two?

      • It was my mistake , I wanted to say
        Find : Customer register Replace with : Mi cuenta

        Customer register does not consider a sentence and translates the two words separately .
        the first case the "Register " I translate for "Soy nuevo."
        The phrase "Customer register" want to translate it by "Mi cuenta"

        Thanks for help me

        • If I understand your situation correctly, you can solve the problem by reordering the rules. Move the second one above the first one. You do this by clicking on the left side of the rule and dragging it up.

          If that doesn't work, can you email me a screenshot of your rules?

  38. Mariois
    Wonderful search and replace plugin, so easy to set up.
    One problem, though. I'm using it to redirect ads and it works most of the time but not all the time.

    What can I do to fix this problem?

    Gene

    • Is the code you're trying to replace visible when you "view the source" in your browser? Ads in particular are often served by JavaScript which is actually pulled from another server. In such cases, the plugin won't find a match and so can't do the replace.

  39. Sorry, had to deactivate the free version first. All is well.

  40. Bought the pro version but cannot activate it.
    Getting the following message

    Fatal error: Cannot redeclare far_plugin_meta() (previously declared in /data01/virt48346/domeenid/www.ratsaliit.ee/balticriders.com/wp-content/plugins/real-time-find-and-replace/real-time-find-and-replace.php:36) in /data01/virt48346/domeenid/www.ratsaliit.ee/balticriders.com/wp-content/plugins/real-time-find-and-replace-pro/real-time-find-and-replace-pro.php on line 163

    Can you help?

    Thanks, Eva-Maria

  41. I'm getting a Download failed. Unauthorized error when I try to update the pro version, I'm unable to find the original download link either.
    I purchased it on Dec 3rd and my paypal email address is the same as what I'm using in this comment. Can you either email me an updated version or let me know how I can update it?

    • New link sent. If you don't receive it, let me know.

      • Got it thanks!

  42. Hi

    Your plugin is working well and solved a couple problems - thank you. I have a couple instances where it doesn't work for some reason. I cannot replace "PROCEED TO CHECKOUT" with "GO TO CHECKOUT" at https://refedge.com/cart/ and also once in checkout screen, there is a replace that does happen temporarily (Pre-order: > Expected In Stock) BUT then it reverts back to the original "Pre-order:" Any idea why these 2 things don't work? Would the PRO version definitely fix these?

    • I haven't seen a temporary replacement before. That's odd and I don't know how it could happen. The plugin should be able to do what you've described. The pro version adds some more control via filtering, but I don't see it performing differently in your situation.

      • In some cases, words are being capitalized by CSS, try and find the real html text, and reaplce that, specially buttons often are css styled and in your case, it might aswell we Go to checkout instead off GO TO CHECKOUT. as i looked on your website, a button is called "PROCEED TO CHECKOUT" it is actually "Proceed to Checkout" so if you fill that in, you can change it!

        good luck.

  43. Hi, I bought the pro version because I thought I could use excel to upload the settings. Is there anyway to upload 100s of different rules/ settings easily?

    • Unfortunately, there is no generic import facility. Is there something in the description that made you think you could import using Excel?

  44. I have the pro version but we migrated from a sub folder to the parent domain, now we're unable to reactivate our licence (can't add additional find/replace. Otherwise, the plugin is perfect!

  45. Is it possible to get an agency license? For multiple domains..like 200 of them :-)

    • I'm sure we can work something out! I sent you an email separately from this forum reply.

  46. There was a question re replacements not happening in feeds. Normally this is when people want relative urls and use a regex to rewrite the page to relative urls.
    You could add a setting to your plugin not to run a certain rule for feeds and for sitemaps:

    if ( is_feed() || get_query_var( 'sitemap' ) ) return; // do not do anything in sitemaps and feeds

    • Thanks for the tip! That option should be pretty easy to add.

  47. Hi -

    I must be getting tired because I cannot find where or how to enter the license key for Real-Time Find and Replace Pro. Please let me know.

    Thanks for a great product at a great price.

    - dave

    • Go to the plugin's settings page. At the top of the right sidebar there should be a box for the key. Drop in the key, hit save, then hit activate. If everything works, the Activate button should read Deactivate.

      I too think the price is great, but I may be biased :-) Thanks for the feedback.

      • Hi Marios -

        Thanks for the update. I uninstalled the OLD version (I had it for less than 1 day) and reinstalled. This time the license screen came up and it worked. Hey 30 % off means buy two - get one free ( or close to it) . Just another way of saying the same thing - thanks again!

      • Hi, I can't see the box to enter the license box using the above info.

        Please advise

        Thanks

        • Did you deactivate the free version, download the pro version, and activate the pro version?

        • That's got it, thanks

  48. The plugin works great for me. I'm using it to replace an image url. The problem is when the post is published, and then shared on social media, the original image url is shown in all social media, and the not new one I'm replacing it with. I have it set to share posts immediately after they are published. When you go to the site, the correct image is showing, but the old image is showing on Twitter and Facebook.

    Do you know of a way to replace the text before the post is published? I am creating several posts automatically, which is why I would not be able to make these changes manually. Any help would be appreciated. Thank you

    • Hmmm... That's an interesting situation. I'm not sure how what you've described could be happening as the replace happens when a page is accessed whether that's by a person or a machine.

      Are you using a plugin to automatically share on social networks?

      • I am using the embedded sharing tool within wordpress. As soon as the post is created, it is then shared, so that must be happening before the replace happens. It must be within miliseconds. I am using IFTTT to create the post.

        • I don't think it's a timing issue. My plugin executes when a post is requested and before it is delivered to the user. Having said that, I don't know how the sharing module you're using works so I don't know if it's somehow bypassing the plugin's functionality.

  49. I purchased the pro version of this app but it's not working. I am trying to update links site wide. I type in the url I want to replace and put in the new url and click on "update settings" . NOTHING happens. It says it's done it but then when I check the pages the links haven't changed. Help please!

  50. Sir
    If i install this plugin on my wordpress site, when i activate the plugin, then my site not opens. It just opens a blank white page.
    Again when i deactivate the plugin, site opens normally
    What is the problem?

    • I haven't seen that behavior before just from activation. Are you able to turn debugging on temporarily to see if any messages are given? I'd have to guess there's a conflict with another plugin. Do you use many plugins? Are any of them premium plugins?

      • Yes i am using a lot of plugins.( No one is premium plugin, all are free versions)..Initially i also thought that some other plugin is having conflict with this. I checked ....I de-activated all plugins and activated only this one........Still the problem remains same..........Means problem is with this plugin......When i deactivate this plugin and activate all others, there is no problem

        I am using Wordpress theme leeway. Earlier the plugin was working on same theme and it worked well for 20-25 days and suddenly one day, this problem occured...

        If i used this plugin with my other site having same theme, there is no problem. Only this site is giving problem...That's very strange

        Can u make an idea What may be the reason?

        • I installed the Leeway theme and activate just this one plugin. I had no problems. If possible, can you try either or both of these:

          1. Turning on debugging and then reactivating the plugin. Please send me any errors that appear.
          2. When the plugin is active, can you access the settings pages? If so, can you insert IGNORE at the beginning of each Find box? This will cause the rules to be ignored. If you can now see your pages, there's a problem with the rules and not the plugin as a whole.

      • Thanks a lot for your prompt reply. I am highly grateful to you for your quick customer service.
        In the meantime i have solved the issue today after one month.
        Accidently i unchecked the checkbox of regx and it worked perfectly fine after that..

        Now i have one query if u can reply
        i have a url [url removed]
        i want to convert it into [url removed]
        means i want to remove [url removed] from the starting of url

        How can i do that?

        • I'm glad to hear you found and fixed the problem!

          To update the URL in the example you provided, create a basic, non-regex rule with the find set to "http://www.savemoneyindia.com/url.php?go=" and the replace with "" i.e. empty box.

        • Do i need to put " " around the text to replace ?

        • You don't need to put quotes around either the Find or Replace. For regular expression rules you need to start and end with a forward slash / in the Find.

  51. Hello Marios,

    On a https site I am getting annoying block content messages which is due to http references for a plugin e.g. http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800. I can make edits within plugin concerned, but every time there is an update a re-edit is needed. I've tried the free version with no success. Can your pro version work its magic on the backend?

    Thanking you in advance,

    Phil

    • Hi Phil,

      The pro version works on admin pages too. With the limitation that it won't work on the plugin's admin page because it could result in rule definitions being replaced by the rules themselves. But a rule marked to run on admin pages will run on every other admin page.

      Marios

  52. I really, really like your plugin and find it very helpful. I bought the pro version also.

    I'm trying to remove some options in a dropdown - for example, I'd like to remove Category and replace with nothing. I cannot seem to get the plugin to remove it.

    Any suggestions for doing this are much appreciated.

    • If you direct me to the site you're working on, I can take a look. As a pro user, feel free to email me at support [at] infolific [dot] com.

  53. So simple, but so genius, I often find myself using this to patch things as I do a migration, simpler than doing a DB update and safer and you can patch link in the background as you work. Equally handy for adding to themes, rather than hack and slash at files, find a an ID or Class anchor and add your code, same for removals, just so handy. Never seen it diminish performance either :) nice work.

  54. I had a question about the plugin functionality. Would the following be possible?

    My website www.example.com has a few high-level pages that have many child pages beneath them. Currently, the WordPress main menu nav features links like:
    - www.example[dot]com/about
    - www.example[dot]com/services
    - www.example[dot]com/portfolio
    - www.example[dot]com/contact

    However, if someone is on the page www.example[dot]com/group-1/, could this plugin dynamically find and replace that same main menu nav to:
    - www.example[dot]com/group-1/about
    - www.example[dot]com/group-1/services
    - www.example[dot]com/group-1/portfolio
    - www.example[dot]com/group-1/contact

    Then if they were on the page www.example[dot]com/group-2/, have the main menu of:
    - www.example[dot]com/group-2/about
    - www.example[dot]com/group-2/services
    - www.example[dot]com/group-2/portfolio
    - www.example[dot]com/group-2/contact

    • There are no filtering capabilities that allow you to specify when the plugin will do a replace or to have it adjust the replace dynamically based on some other variable. The plugin requires something specific in the HTML code to search for and once matched the replace will happen.

  55. Hello, is there any way to use reg expressions to modify links in post? I have a site with a huge job listings section that I am not updating anymore. All these post with a job offer have a link at the end pointing to external pages that now gave 404 errors as the offer is expired. I have used the same anchor text for all these links (see offer) and now I'd like to change the anchor to "the offer is expired, please go to the home page", with a link pointing to my home page.

    Is there any way I can modify massively this, being the external links all different? Any reg expression that I can use to replace any links to www.mysite.com?

    Thanks in advance for your time and help

    • Yes, a regular expression should work just fine to match all of the links and then replace them with the same new link.

      • Thanks for confirming that, but I am not familiar with reg expressions, and I was looking for some help in that sense... can you help my build one that will do the magic?

  56. Hello, I liked your plugin so much and its very much helpful for me.

    But when i tried to replace Google Adsense code. It's not working.
    So can you please help me for changing an old Google Adsense code, which i already added to each post page with my new code?

    Here's my old code: (I changed my client id and slot id)

    google_ad_client = "ca-pub-1234567891011234";
    google_ad_slot = "1234567890";
    google_ad_width = 300;
    google_ad_height = 250;

    I want it to replaced with

    google_ad_client = "ca-pub-9876543211011234";
    google_ad_slot = "9876543210";
    google_ad_width = 300;
    google_ad_height = 250;

    Can you please help me?

    • I think 2 rules would be easiest. In each rule just include the one of IDs and replace it with the new one.

  57. Hi Marios,

    Quick question. I've installed your plugin on a multisite config. I've only tried the plugin on a subdomain because it's all that has been developed.

    My posts output a trailing url that includes &rss=1 on the end. I'm trying to replace the &rss=1 with either nothing or just &. So far, just trying to find and replace isn't solving my issue.

    Do you have any recommendations?

    Thanks for the work that you do!

    Cheers,
    James

    • Nothing you've described seems to be outside of the plugin's capabilities. I would start small and see if you can replace just the rss, then the rss=1, and then the full match. Sometimes when you're dealing with characters like ampersands they can end up being HTML encoded and so the match rule needs to be different than what you expect.

  58. First of all thanks for developing this useful plugin. I have suggestion in mind. If possible it should be very useful if we could use this features in specific pages or posts too. For example If I want to replace to inside recent posts widget but not in actual or single pages. In short I don't want to change that image in all pages but only in specific page/post. Hope you understand what I'm trying to say.

    Thanks for giving some time enhancing this useful and free plugin. Keep up the good work.
    Randy

    • Thanks for the idea. I've been toying with adding some filtering options to control when the rules are applied. Others have had similar requests so it certainly seems something worth adding.

  59. Basically, I want to know if you can take the regex string matched in the search string and use it in the replace string.

    Thanks.

    • Yes that should work.

  60. Hi Marios

    I love this Find Replace pluggin!!! It's made my life so much easier. I'd even pay to use it!! :)

    One quick question:

    It works perfectly for single lines of code, but never works when I copy more than one line of code into a Find. I have to do it line by line, which makes it impossible to find and replace some parts of my blog, due to <div containing classes or <select where is on a different line etc (i.e. if I was to find and replace with blank, it would screw up many other parts of my blog. Is there a way to insert multple lines of code into a single Find?

    Also, just a suggestion/idea, could you create an export of the all the Find Replaces, just for peace of mind. I have quite a few and I worry in case somehow they get deleted.

    And one more idea, could you create a way to label each Find Replace so that it's easy to see what each one represents?

    Hope you're having a great week!!

    :)

    • Hi Philip,

      Have you tried the regex option for your search rules? With regex you can write a rule that matches anything including if the code goes to another line.

      Your 2 suggestions are good ones. I've had the same concern about losing my own rules :-) The labeling feature would also be helpful and should be easy enough to add. For the time being I'm inserting an HTML comment in the replace rule as a way to comment, but also to help find the the replace in the actual web page.

      Thank you for your contribution!

  61. I'm trying to find and replace a STRING that contains three dots (...)

    Ex: Text... Example => (replace) Text, Example

    But nothing that I do works. Any ideas?

    • That kind of replace should work without issues. Can you try a simpler replace just to confirm that everything is working? Also, make sure you're not looking at a cached copy of the page if you're using a caching plugin.

  62. Hi, Marios!

    The Real Time Find and Replace plugin doesn't appear to work on WP 4.0 Benny. I reported this over on the support forum for the plugin, but I thought I'd also come here, just in case you're not getting notifications from over there.

    I do hope you're still maintaining it! It's exactly what I need, and I'm so disappointed it isn't working for me.

    Thank you for the good work on the plugin, so far, even if you're no longer supporting it. :-)

    • Hi Melynda,

      Thanks for letting me know. Two things in response:

      1) Every new release of WordPress brings with it reports that this plugin doesn't work. Every time the issue turns out to not be related to the new release. Yes, it's possible that this time it is related, but I'd explore other explanations too. Common problems include caching and rules the function unexpectedly. I'm happy to help you look into possible issues with your site if you can share more info.

      2) I don't update to any "dot zero" releases of WP. I always wait for the "dot one" release e.g. 4.1. I don't have the time to deal with the inevitable bugs that come with a major release. No slight is intended for all of the great WP Core developers; it's just reality. So I haven't tested the plugin yet. I will as soon as WP 4.1 is out.

      Sorry, that's probably not what you wanted to hear!

      • Hi, Marios!

        No slight taken! I completely understand about not wanting to fiddle with the plugin between major updates of WP. I'm amazed that you spend time to support and maintain your plugins at all, with no compensation. This plugin, if I can get it to work for me, will be incredibly useful, and I'll be very happy to help you spread the word about it.

        Now then. Speaking of making it work for me ... ;-)

        I have absolutely no idea why it's not functioning properly for me. Perhaps I'm simply not using it properly, or perhaps there's a plugin conflict. I'm not using a caching plugin. I do have one installed, but not it's not network activated.

        I have a WP multisite install. Could that be the problem?

        Do you have suggestions about how I might go about troubleshooting? I don't know where to start, beyond trying a different theme and disabling my other plugins one-at-a-time and retrying Real-Time Find and Replace between each. Admittedly, I'm a noob, but I'm not afraid of getting my hands dirty, and I can learn ...

        Any ideas? Or can you point me in the right direction and give me a push?

        Thank you, by the bye. I'm absolutely thrilled to have received a reply from you. Amazed and grateful and humbled, too.

        Yours,
        --Melynda

        • Ooo...forgot to ask:

          You'd written, "I'm happy to help you look into possible issues with your site if you can share more info." I'm in! What information about my site do you need?

        • Hi Melynda,

          You have good timing! Just this morning I upgraded to WP 4.0.1 and I can confirm the plugin continues to work. So that takes care of one variable.

          This might be a multisite problem, but I don't run multisite so I can't confirm. The first test I would try is removing all rules except for a very simple one. For example, pick a piece of text from your menu or footer. Make sure the text exists in the source code without any HTML tags within it. For example, if somewhere on your site you have the word "RSS" use that in Find box and in the Replace box write "RSS2" (no quotes in either case). Save the change using the Update Settings button and then reload the page on your site.

          Marios

  63. Marios,

    Thank you for the great plugin. I downloaded it and used it successfully. Worked great. I would like to donate to your plugin. How do I do this?

    Thanks,

    Terry

    • Hi Terry,

      I'm glad you like the plugin. I don't really collect donations, but I appreciate the offer. Spreading the word about the plugin would be the best way to say thanks :-)

      Marios

  64. Hi,

    This plugin is great, but I do have a question?

    Is there anyway to upload a list of changes to the plugin rather than having to input them each one by one.

    Example: I have a large excel file, and if a respective sequence of numbers is on a page, then it needs to be replaced with a correlating item.

    Is there anyway to copy and paste multiple find and replace items in one action, or does each have to be input separately?

    Thanks,

    • Sorry, but there's no functionality for importing settings. You could try updating the field(s) directly in the WordPress database.

  65. Hi . thank you for your very very useful plugin . but I have a small problem with this plugin . when I setting this plugin to this setting :

    find : download replace : /// strong /// download /// /strong ///

    this plugin work good but titles word too, replace with same :

    Real time software /// strong /// download /// /strong /// by my web

    and this not good for my site . please help me to filtering this plugin only for post.

    // =>>

    thank you .

    Haider

    • What you're trying to do should work. When something isn't work for me, I copy the find rule to the clipboard, then view the source of the page I expect to be modified, and then search for what's in the clipboard. This helps ensure that the find rule matches what's in the source code because even small differences will result in failure.

      • My friend this plugin work for me very well . i want to bold a word with strong source code but this plugin added HTML code in title and strong or bold code any time can't work in title .

        but this plugin in the post and other position work very well .

        please help me for solve this problem and able to filtering the positions .

        • Unfortunately there are no additional filtering options to tell the plugin to ignore titles or other parts of the page. It may be possible to write the find rule as a regular expression that won't match the title, but will still match other parts of the page. Regular expressions can be tricky though so I'm not 100% sure there's a solution for your particular case.

  66. When you add mulitple keywords to list and save, it doesn't works. Only the last keyword is saved and others get deleted. Plugin only saves if you add one keyword at a time and have to update everytime before adding new one.

    Please fix the error.

    Thanks.

    • I found some jQuery incompatibilities and I believe I have corrected them. The latest version (1.5) should work as expected.

  67. The plugin doesn't work anymore. None of the pages loaded after adding a replace entry in the plugin settings.

    • The plugin continues to work fine for me. I've got many rules including regex replaces. I would suggest reviewing the rule you put in to make sure it isn't behaving unexpectedly. Maybe even start with a very a simple rule and build from there.

      I've also heard that some other plugins cause conflicts so if you've installed anything recently that could be the problem.

    • It doesn't work with wordpress 3.9.1 is there ay plans to update it?

      • I'm not aware of any problems with the plugin on WP 3.9.1. The plugin is used on this site which is running 3.9.1 and it is replacing text as expected.

        • Any ideas why it won't work on my site? http://bit.ly/1ncB9Tj it should be replacing the background from

          to

          and nothing seems to happen...

        • The from and to parts didn't come through. Were they HTML?

        • Yes they we HTML coding

        • i still have the same problem after updating to the latest version of your pluggin, here is a tinypaste so you can look at what i need to replace

          http://tny.cz/dc58f772

          the webpage is http://www.muditatransformationalleadership.com/home/

          could you advice on how to fix this? thanks in advance for all your patience

        • Take another look at your source code. I see that the page uses single quotes in that div tag and not double quotes like your find rule. When looking at the source be sure you're not using a tool that "cleans" the code as you need to search for exactly what's in the source.

          I hope that fixes the problem!

  68. Hi Marios, the Real-Time Search and Replace plugin definitely doesn't work with the latest version of WordPress (3.5). After much experimenting, I found out that I had to downgrade to WordPress 3.1 and Contact Form 2.4.6 in order for the plugin to work properly. Obviously this is not ideal due to the inherent bugs and instability of the older versions.

    If you have a chance to debug the plugin, that would be great. It does the job beautifully but needs to catch up with the latest WordPress and Contact Form versions. Thanks!

    • The plugin continues to work fine for me with the latest WordPress -- I'm on 3.5.2. I don't use Contact Form 2.4.6 though.

    • It also stopped working for me after setting multisite version in 3.5

      • Sorry, but the plugin hasn't been tested on any version of WPMU. If it worked in the past, it was just lucky.

  69. Hello,

    The plugin had worked very well for a long time, however, today I was not able to Remove old entries. Instead it adds empty entries.

    Wilfredo

    • I'm seeing the same thing. As far as I can tell nothing actually breaks. You just can't remove the boxes. They can still be emptied and you can put other rules into them. Regardless, I'll be looking into the issue.

  70. Great plugin however the Regular expression doesn't work on WP 3.4.1 I have tried examples from this website to make sure the expression if correctly formated and nothing works. It returns a white page when I try to render my site.

    Ideas?

    • The plugin works fine for me under WordPress 3.4. I can't imagine the changes in 3.4.1 were significant enough to break the plugin. Could you post one of the regex expressions here i.e. copy and paste exactly what you're using?

      • Here is the regular expression code I am testing with. This was taken from your site so I assume it's correct.

        Thanks for your help.

        /<meta name="generator" content="WordPress [0-9].[0-9].[0-9]" />/

        • I just tested the plugin and regular expressions are working for me. I tried an easy one where I replaced /generator/ with nothing. Things to keep in mind as it is hard to tell from the code you're pasting in as it gets modified in the comments...

          1. Start and end the search box with a forward slash i.e. /
          2. Be sure to escape special characters such as periods and forward slashes i.e. if you want to search for a period you need to type in backslash period.
          3. Watch out for line breaks in your code. On this site the meta name generator spans two lines so the regularly expression you provided won't work since there's nothing in it to account for the line break.

  71. Would this work on multisite? Would I have to network install it? Say if I wanted to get change wp-admin in all urls to site-admin, how would I do that?

    • This plugin hasn't been tested on multisite so I don't know how it would behave.

  72. I just installed this plugin and love it! Thanks!

  73. Hello,

    I just installed Real Time Find and Replace (WP v 3.2) and when I click ADD link, nothing happens -- no new window, nothing. Is there something I have to set (apart from activation) before it will function?

    Thx.

    • Hi Peter,

      Not sure why this happened, but the associated JavaScript files didn't get into the distribution file that is in the plugin repository. I'm working on correcting it now.

    • Hi Peter,

      Plugin distribution is now fixed. Just grab the latest version (1.3.1).

  74. Is there any way to filter the trigger so it only works on the index.php? That way the replacements wont affect the posts?

    • Marios Alexandrou

      Andrew,

      There is no filtering available. I've thought about that before actually, but for me it is a "neat" idea and not one that I had enough need for to justify the effort. Sorry!

  75. Marios - useful plugin, but i am struggling with Regex turned on. Catastrophic result as the page does not load.
    I'm thinking it might be because I am running WP 3.0. Are you aware of any issues with it running on 3.0?
    Thank you.

    • Does the page load as a blank page? I have this same issue quite often. Check your regex and see if you are not striping any DIV tag in the process. Look at your page´s source without applying the regex and then make some experiments. There are plenty of regex testers online that can help.

      • yes, all blank. any, even the simplest, regex logic i use produces that same result.

        • Do you use an $ before and after your regex? Here is an example of a regex I use:
          $class="more-link"(.+?)(?=)$s

        • The comment system strips out some part of my code. The underscores do not really exist:

          $class="more-link">(.+?)(?=)$s
          Replace with a closing div tag.

    • Marios Alexandrou

      Hi Kevin. There may be some issue with WP 3.0. I have yet to migrate so I haven't tested out the plugin yet.

  76. I just installed this on a 2.9.2 website, and it doesn't seem to be working. I click on the "Add" button on the Real Time Search and Replace Tools page, but nothing happens. Shouldn't I get some kind of form to allow me to define rules?

    Dan

    • Marios Alexandrou

      I'm using this plugin on multiple 2.9.2 installs. Clicking the Add button creates a new row of input boxes.

    • Dan, maybe you can see http://wordpress.org/support/topic/plugin-real-time-find-and-replace-missing-js-folder-on-v-11

  77. Hi, I really like your plugin and I've installed your plugin in my several blogs and it works correctly. But while I tried to install in my latest blog, it won't work. I can't add any input text in the setting page.

    ---
    Click "Add" below to begin.

    [Add]
    -----

    when I clicked [Add] button, it won't display anything (the input form). ..
    Probably you know the solution,..

    thanks..

    • Marios Alexandrou

      It looks like I missed including some files with the 1.1 release. I've corrected that omission with 1.2.

  78. Hi!

    I think there is a little bug in the plugin. Whenever I set a rule to search something that contains "#038;", it strips this string out from the "find" field as soon as I click the apply settings button. It happens when using both options, regex or not.
    Is this expected behavior or it is a real bug?
    What can I do to surpass this behavior and make it actually search for "#038;"? I've tried to escape all characters, but no joy either.

    Thanks a lot!

    • Daniel,

      I was able to save a rule with "#038;" in it. I didn't do anything special and it saved the first time. Are you able to enter other rules without problems?

      • Discovered that the problem is an "&" before the #308, making the problem string "&#308".
        The first time the rule is entered it stays there. If I go to another page and then go back to the plugin's settings, the "&#308" is not there anymore. Anyway, the string is part of a URL, if that matters.
        All other rules are always OK, only the ones using something like #+number are giving me this problem :(

        Thanks!

  79. Hi. I've noticed that the plugin filters my feed, too.
    Is there any easy way to exclude the feed from being filtered?

    Thanks a lot!

    • Marios Alexandrou

      Sorry, there is no easy way i.e. no options you can set.

      • Ok, I didn't mean THIS easy ;)
        An "IF is_feed" well placed should do the trick, maybe?
        I am starting to study wordpress, if you could point me to the right direction, maybe I could figure it out.

        Thanks a lot!

  80. Marios Alexandrou

    Do you mean that if there's a match, but it's in the meta keywords, the replacement shouldn't happen? You can achieve this by using regular expressions although such regular expressions could get rather complicated.

  81. Hi. When using the plugin without marking "Regex", it works just fine. If I mark the "regex" box, I get a blank page on my blog (even with very simple regex expressions, like find my name and replace with another name, and even if I left all fields blank).
    So, marking the option "regex" just gives me a blank page (no code at all).
    Is there some special way to use it with regex? I am using wordpress 2.8.3.
    Thanks a lot!

    • It seems that it is needed to enclosure the regex between . Is it a problem with my installation or this is the way it meant to be? Is it included in some plugin documentation? I couldn't find it anywhere.
      If I use a regex very simple like or , it works fine.

      I am trying to rip off all images from posts syndicated with the FeedWordpress plugin, using the following regex:
      ]*>(.*?)
      As I have to enclosure it between , it becomes:
      <]*>(.*?)>

      But it does not work. All I get is the blank site again. What am I doing wrong? I am sure the regex is right, because I took it from the regex website, so I think I am missing something, maybe escape some of the >s, but it does not work with > either.
      Help, please?

      • My examples get truncated... Anyway, if I use a regex like [Dd]aniel it works fine. If I try to use > greater and < lesser, it goes bad.

        • Marios Alexandrou

          Sorry that you're having problems with the plugin. I don't have any really complex regular expressions in use at the moment, but I do have one that might help. This one replaces the WordPress generator meta tag. Note that the regex starts and ends with a forward slash. And the forward slash that's part of the HTML has to be escaped with a backslash.

          /<meta name="generator" content="WordPress [0-9].[0-9].[0-9]" />/

        • Exactly what I was needing. Also, the site http://www.regular-expressions.info/php.html has valuable infos regarding the use of regex with PHP.
          Thanks a lot!

        • Any chance to get this filter to work on the post itself, filtering content in the database itself, instead of just on the reader screen? I think it would be great :)

        • Marios Alexandrou

          There are other plugins that make permanent changes to post and page content.

  82. i downloaded it and it really works and i have found it as the best replacement tool for word press.....

  83. This plugin breaks my wordpress 2.8.3 install any ideas?

    • Marios Alexandrou

      Works fine for me on 10+ installs of 2.8.3.

  84. I would like to replace some HTML code in my posts but it seems it dosen't work. I use WP-Super Cache, is it compatible ?
    Thanks! ;)

    • Marios Alexandrou

      Super Cache creates an HTML copy of the page that is delivered to the user. Once the HTML copy is created, plugins aren't executed so you won't be able to do a find and replace with my plugin. However, assuming Super Cache executes all plugins before it caches the page, then the find and replace functionality should work just fine. Note that I haven't tested this yet.

  85. Okay, I see the need and I need it. {Problem is it doesn't work on ANY of my sites!! Help please. Hitting add simply does nothing but add a # to the end of the url. Help would be appreciated. Tested on Linux and Mac, Firefox on both and Safari on Mac.

    Garret

    • Marios Alexandrou

      Any chance that you didn't unzip the sub-folder included in the archive? The JavaScript files that house the add a box functionality are within the JS folder.

      • LOL, that's it, look at your zip file, it's missing the js folder

        • Marios Alexandrou

          Oops. I'm not sure how that happened. WordPress.org actually creates the zip file so I guess I somehow failed to submit the js sub-folder. I just uploaded a new version 1.0.2 and it looks like all files are included this time around.

          Sorry about that!

        • Any help with my below comment?

        • Marios Alexandrou

          I'm trying a similar replace and it's working fine for me. I've actually set up a rule to change the "Any help with" part of your comment to a link. Did you type in the find / replace rules or paste them from somewhere? Maybe a funky character (tab or something) got in there.

        • Right, works find with a url that fits within the form field, try a very long url, something longer that the form field.

        • Marios Alexandrou

          I dropped in a long URL. Still works fine for me. Check out the "any help with" text to see the URL I used.

  86. Works great, thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail.