Title: Haze theme
Last modified: September 1, 2016

---

# Haze theme

 *  Resolved [adamjz](https://wordpress.org/support/users/adamjz/)
 * (@adamjz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/)
 * I cannot replace the “Read more” button in this theme, or maybe it’s the WPBakery
   visual composer, not sure. I also tried .po .mo translations, altering php in
   theme and plugin files, and some basic javascript regex (really basic tho, i’m
   a beginner). Neither worked. Do you think it’s possible to translate it?
    Adam
 * [https://wordpress.org/plugins/real-time-find-and-replace/](https://wordpress.org/plugins/real-time-find-and-replace/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [adamjz](https://wordpress.org/support/users/adamjz/)
 * (@adamjz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/#post-7498215)
 * I forgot i also tried adding replace_text and translate_text to functions.php
 *  Plugin Author [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/#post-7498299)
 * The Haze theme appears to be a premium theme. I have no way to test the plugin
   with it.
 * To test the plugin with it, I would suggest you look for something simple to 
   replace e.g. a page title or something not likely to be impacted by other plugins.
   If you can replace something, then it just becomes a matter of figuring out the
   right match rule for the “Read More” text.
 *  Thread Starter [adamjz](https://wordpress.org/support/users/adamjz/)
 * (@adamjz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/#post-7498446)
 * Thanks for your answer, I could use the plugin someday if I learned this rules
   I suppose. For now I managed to find the right plguin template php to translate
   it finaly.
    However this is still intresting to me, I copied and pasted this 
   text correctly after all. So this rule would have to consider the containing 
   element, like in screenshot or maybe full path? It’s odd because your plugin 
   indeed worked on other elements without specifying them, raw text input in simple
   search was enough.
 *  Plugin Author [Marios Alexandrou](https://wordpress.org/support/users/marios-alexandrou/)
 * (@marios-alexandrou)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/#post-7498450)
 * How did you view the text to copy? The safest way is by viewing source and then
   copying from there. Any other way sometimes leads to problems because you’re 
   not actually grabbing the code in the page, but grabbing what the browser is 
   showing you which may be altered.
 *  Thread Starter [adamjz](https://wordpress.org/support/users/adamjz/)
 * (@adamjz)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/#post-7498531)
 * That’s how I did it, copied from source, with an exception source contained some
   spaces around the text (like ” <space> <space> <space>Read more <space> <space
   > <space> “), but i tried matching them with /s aswell, and not that it should
   matter anyway since in the middle there was plain Read more witch I copied.
    
   This Visual Composer is really strange, I would never use it, but I was updating
   someone’s site. I also tried jQuery for this and it, just like your plugin, worked
   on other parts of the page, but couldn’t handle the Read more, even on the offline
   version of the page’s code, here’s the function btw:
 *     ```
       function escapeRegExp(string) {
           return string.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
       }
   
       function replaceAll(string, find, replace) {
         return string.replace(new RegExp(escapeRegExp(find), 'g'), replace);
       }
       ```
   

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Haze theme’ is closed to new replies.

 * ![](https://ps.w.org/real-time-find-and-replace/assets/icon-256x256.png?rev=1347950)
 * [Real-Time Find and Replace](https://wordpress.org/plugins/real-time-find-and-replace/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-time-find-and-replace/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-time-find-and-replace/)
 * [Active Topics](https://wordpress.org/support/plugin/real-time-find-and-replace/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-time-find-and-replace/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-time-find-and-replace/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [adamjz](https://wordpress.org/support/users/adamjz/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/haze-theme/#post-7498531)
 * Status: resolved