Welcome to WebmasterWorld Guest from 34.236.171.181

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Search and Replace

Need some guidance

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 3, 2002
posts:2586
votes: 3


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.
2:24 pm on Aug 3, 2015 (gmt 0)

Administrator from US 

WebmasterWorld Administrator not2easy is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Dec 27, 2006
posts:4558
votes: 363


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.
3:07 pm on Aug 3, 2015 (gmt 0)

Moderator

WebmasterWorld Administrator webwork is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:June 2, 2003
posts:8055
votes: 101


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