Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Search and Replace

Need some guidance

         

crobb305

6:15 am on Aug 3, 2015 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am looking for a way to search and replace snippets of my source code similar to the way I was accustomed to doing in Dreamweaver. I have seen a couple of plugins, but none have worked. I also tested searching myphpadmin for a line of my source code (that I know exists), but the search kept coming back with 0 results. Can anyone offer suggestions or a plugin that will search both posts & pages, as well as visible text and source code?

Thank you in advance.

not2easy

2:24 pm on Aug 3, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



A good text editor can do that, but visible text - the content of posts and pages - resides in your .sql databse. You can export the sql, edit and upload. The framework - the functions that make wordpress work are in the files of Wordpress that can be downloaded from the wordpress.org site, then edited and uploaded individually as altered. A third consideration are the theme files, that alter the appearance of WP - where css and some of the functions would be edited.

The visible pages shown to the public do not exist anywhere individually, they are created on the fly. I would be very wary of editing WP source code without a complete understanding of how all the parts work together and always keep a backup of anything edited in the possibility of disappointing results. The WP codex can help with specific changes and giving you a view of the .php files and their inter-dependencies.

Webwork

3:07 pm on Aug 3, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



If the string(s) are in "source code" then I'd use cPanel's (or the equivalent) search function.