Results 1 to 10 of 32

Threaded View

  1. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Replacing a text string on a page

    Actually, the stated replacement would probably best be done with PHP. A lot of files would have to be modified, but you could add a snippet everywhere that there may be an instance of "body con" which would use a str_replace() function on the text content before outputting it. You would need to have arrays of old and new text versions (capitalized and lowercase) so that Body con was replaced by Going out, etc. It would be simplest to write a small function with a name like going_out() which would contain the full-length str_replace() code.

    It would probably also be worthwhile to do a conversion pass on the define files for the Going Out site, so that fewer template files needed to be edited.
    Last edited by gjh42; 16 Dec 2011 at 07:49 AM.

 

 

Similar Threads

  1. Replacing Text of Order Status
    By judah in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Aug 2010, 04:40 PM
  2. How to find a text string
    By thomasw98 in forum General Questions
    Replies: 11
    Last Post: 2 Mar 2010, 10:05 PM
  3. Replacing category text with images
    By d'Anjou in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 8 Apr 2008, 10:45 AM
  4. “add to cart:” text string
    By gsh in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 3 Oct 2006, 07:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg