{"id":6773,"date":"2022-07-12T12:40:32","date_gmt":"2022-07-12T12:40:32","guid":{"rendered":"https:\/\/wpx.net\/kb\/?post_type=ht_kb&#038;p=6773"},"modified":"2025-07-18T10:50:51","modified_gmt":"2025-07-18T10:50:51","slug":"search-and-replace-what-is-it-and-how-can-i-do-it","status":"publish","type":"ht_kb","link":"https:\/\/wpx.net\/kb\/search-and-replace-what-is-it-and-how-can-i-do-it\/","title":{"rendered":"Search and replace &#8211; what is it and how can I do it?"},"content":{"rendered":"\n<p>There are cases where you may need to replace all occurrences of specific strings in your WordPress site with another.<\/p>\n\n\n\n<p>For example, when you have just uploaded a picture and want your WordPress site to use a specific name instead of the current one or when you simply want to change the name of the picture.<\/p>\n\n\n\n<p>You can do this easily with WordPress plugins such as <strong><a aria-label=\"Better Search and Replace (opens in a new tab)\" href=\"https:\/\/wordpress.org\/plugins\/better-search-replace\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\">Better Search and Replace<\/a><\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-1-install-and-activate-the-wp-sweep-plugin\">Step 1. Install and activate the Better Search Replace plugin.<\/h2>\n\n\n\n<p>To install the plugin, you can search for it straight in your WordPress Dashboard (you can log in to your backend area by adding&nbsp;<strong>\/wp-admin<\/strong>&nbsp;at the end of your website\u2019s URL, eg.&nbsp;<strong>https:\/\/mywebsite.com\/wp-admin<\/strong>).<\/p>\n\n\n\n<p>Click on&nbsp;<strong>Add New<\/strong>&nbsp;(1) in your&nbsp;<strong>Plugins&nbsp;<\/strong>menu, then type<strong>&nbsp;Better Search Replace&nbsp;<\/strong>(2) into the search bar. Press&nbsp;<strong>Install<\/strong>&nbsp;<strong>Now<\/strong>&nbsp;(3)<strong>&nbsp;<\/strong>next to the plugin<strong>,<\/strong>&nbsp;and then activate.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0493595e577&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0493595e577\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2834\" height=\"945\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1.png\" alt=\"\" class=\"wp-image-11766\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1.png 2834w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-300x100.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-1024x341.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-768x256.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-50x17.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-1536x512.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-2048x683.png 2048w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-60x20.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-1-100x33.png 100w\" sizes=\"auto, (max-width: 2834px) 100vw, 2834px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>You can finish the process by selecting <strong>Activate<\/strong>.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0493595e999&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0493595e999\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1224\" height=\"536\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2.png\" alt=\"\" class=\"wp-image-11768\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2.png 1224w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2-300x131.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2-1024x448.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2-768x336.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2-50x22.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2-60x26.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-2-100x44.png 100w\" sizes=\"auto, (max-width: 1224px) 100vw, 1224px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Once it\u2019s activated, you can find the plugin\u2019s settings in the&nbsp;<strong>Tools<\/strong> (1)&nbsp;area of your WordPress dashboard and <strong>Better Search Replace <\/strong>(2) section.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0493595ece7&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0493595ece7\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2164\" height=\"1195\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3.png\" alt=\"\" class=\"wp-image-11769\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3.png 2164w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-300x166.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-1024x565.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-768x424.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-50x28.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-1536x848.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-2048x1131.png 2048w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-60x33.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/07\/BSR-3-100x55.png 100w\" sizes=\"auto, (max-width: 2164px) 100vw, 2164px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"step-2-optimize-the-database\">Step 2. Backup your Database.<\/h2>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon is-style-danger\">Before you do any search and replace we would highly recommend&nbsp;<a href=\"https:\/\/wpx.net\/kb\/how-can-i-backup-my-site-personal-backups\/\" target=\"_blank\" rel=\"noreferrer noopener\" class=\"ek-link\"><strong>backing up your database<\/strong><\/a>&nbsp;first.<br><br>This way, you can be sure that no matter what you do on the site, you can easily revert the changes. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3. Choose the old URL and the New URL. <\/h2>\n\n\n\n<p>For example, let&#8217;s say you have a broken picture in your media that you need to update to fix it. To fix the image, you need to replace the old name with the correct one. In our example, we will be changing &#8220;NEW-WPX-LOGO-new&#8221; to &#8220;NEW-WPX-LOGO&#8221;.<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0493595fb91&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0493595fb91\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1867\" height=\"675\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW.png\" alt=\"\" class=\"wp-image-6785\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW.png 1867w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-300x108.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-1024x370.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-768x278.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-50x18.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-1536x555.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-60x22.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014NEW-100x36.png 100w\" sizes=\"auto, (max-width: 1867px) 100vw, 1867px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>In that case, you need to go to the Better Search Replace from the Tools options and change it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4. Dry run search and replace. <\/h2>\n\n\n\n<p>Go to Tools in your WordPress dashboard and then select <strong>Better Search Replace. <\/strong><\/p>\n\n\n\n<p><strong>In the first section<\/strong> (1), you need to add the <strong>Old URL<\/strong>, that you will be changing and next to it you need to add the <strong>New URL<\/strong>. In our example, we want to change &#8220;NEW-WPX-LOGO-new&#8221; to &#8220;NEW-WPX-LOGO&#8221;.<\/p>\n\n\n\n<p>Then select the option <strong>Run as dry run<\/strong> (2) which allows checking the results beforehand without making any changes in the database. Then you need to <strong>select the table\/s<\/strong> (3) that you want to search and replace with Ctrl-Click for Windows or Cmd-Click for Mac (you can select all of them) and hit the <strong>Run Search\/Replace -&gt; button<\/strong> (4):<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a049359600d8&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a049359600d8\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1223\" height=\"722\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW.png\" alt=\"\" class=\"wp-image-6788\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW.png 1223w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW-300x177.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW-1024x605.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW-768x453.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW-50x30.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW-60x35.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-NEWWWW-100x59.png 100w\" sizes=\"auto, (max-width: 1223px) 100vw, 1223px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>After the dry run is completed you will see how many rows need to be updated:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a0493596044b&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a0493596044b\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"904\" height=\"332\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change.png\" alt=\"\" class=\"wp-image-6790\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change.png 904w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change-300x110.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change-768x282.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change-50x18.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change-60x22.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014change-100x37.png 100w\" sizes=\"auto, (max-width: 904px) 100vw, 904px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5. Search and replace string <\/h2>\n\n\n\n<p>If you want to proceed with those changes, you need to <strong>uncheck the dry run option<\/strong> (1) and hit the <strong>Run Search\/Replace again <\/strong>(2):<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a04935960840&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a04935960840\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"960\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change.png\" alt=\"\" class=\"wp-image-6791\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change.png 1080w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change-300x267.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change-1024x910.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change-768x683.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change-50x44.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change-60x53.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-\u2014new-change-100x89.png 100w\" sizes=\"auto, (max-width: 1080px) 100vw, 1080px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Now you will see that the <strong>changes were already made<\/strong> in the database which means that we already changed the string from NEW-WPX-LOGO-new to NEW-WPX-LOGO:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a04935960bdf&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a04935960bdf\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"501\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final.png\" alt=\"\" class=\"wp-image-6792\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final.png 1006w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final-300x149.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final-768x382.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final-50x25.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final-60x30.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Better-Search-Replace-\u2039-wpxexample.net-almost_final-100x50.png 100w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p>Then we can just check again the Media and see that the picture is already visible and the <strong>name is changed<\/strong>, which means that our job is perfectly done:<\/p>\n\n\n\n<figure data-wp-context=\"{&quot;imageId&quot;:&quot;6a04935960f98&quot;}\" data-wp-interactive=\"core\/image\" data-wp-key=\"6a04935960f98\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1855\" height=\"721\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL.png\" alt=\"\" class=\"wp-image-6794\" srcset=\"https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL.png 1855w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-300x117.png 300w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-1024x398.png 1024w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-768x299.png 768w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-50x19.png 50w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-1536x597.png 1536w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-60x23.png 60w, https:\/\/wpx.net\/kb\/wp-content\/uploads\/2022\/05\/Media-Library-\u2039-wpxexample.net-\u2014-FINAL-100x39.png 100w\" sizes=\"auto, (max-width: 1855px) 100vw, 1855px\" \/><button\n\t\t\tclass=\"lightbox-trigger\"\n\t\t\ttype=\"button\"\n\t\t\taria-haspopup=\"dialog\"\n\t\t\taria-label=\"Enlarge\"\n\t\t\tdata-wp-init=\"callbacks.initTriggerButton\"\n\t\t\tdata-wp-on--click=\"actions.showLightbox\"\n\t\t\tdata-wp-style--right=\"state.imageButtonRight\"\n\t\t\tdata-wp-style--top=\"state.imageButtonTop\"\n\t\t>\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewBox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\" \/>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n\n\n\n<p class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\">That&#8217;s it. With a few simple steps, you can change every string that you want and make changes easily if necessary. <\/p>\n\n\n\n<p>If you get stuck with anything discussed on this page, please get in touch with WPX Support Team via live chat (use the bottom right-hand widget) and they will respond and help within 30 seconds or less.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are cases where you may need to replace all occurrences of specific strings in your WordPress site with another. For example, when you have just uploaded a picture and want your WordPress site to use a specific name instead of the current one or when you simply want to&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":3,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","inline_featured_image":false,"footnotes":""},"ht-kb-category":[30],"ht-kb-tag":[],"class_list":["post-6773","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-website-help"],"_links":{"self":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/6773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/comments?post=6773"}],"version-history":[{"count":11,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/6773\/revisions"}],"predecessor-version":[{"id":13644,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb\/6773\/revisions\/13644"}],"wp:attachment":[{"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/media?parent=6773"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=6773"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/wpx.net\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=6773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}