Title: Plugin Req: Dynamic Text Replacement
Last modified: August 18, 2016

---

# Plugin Req: Dynamic Text Replacement

 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/)
 * This would be a neat plugin ……….
    [http://www.alistapart.com/articles/dynatext/](http://www.alistapart.com/articles/dynatext/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/page/2/?output_format=md)

 *  [NuclearMoose](https://wordpress.org/support/users/nuclearmoose/)
 * (@nuclearmoose)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-65951)
 * Podz,
    If I read that right, you are in luck, because Jaykul over at HuddledMasses.
   org has just created that very thing for WP.
 *  Thread Starter [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-65963)
 * Cheers NM 🙂
 *  Thread Starter [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-65972)
 * Got this working 🙂
    I had some trouble, but it was me getting server paths wrong,
   so if, when you hard refresh, you see a brief glimpse of where the image should
   be, then your normal title appears, check your server paths.
 *  Anonymous
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66050)
 * when i get evrything configured, everything is gone except the header. Whats 
   wrong?
 *  [dss](https://wordpress.org/support/users/dss/)
 * (@dss)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66052)
 * i’m confused at the first hurdle…
    the $before variable… the language used to
   explain it sadly goes well over my head. “â€¢ The $before variable is a special
   string which will allow you to make sure your titles are only replaced when you
   want them to be. For instance, if you set $before = “[image]”, then, in your 
   index.php template, your call to the_title should be the_title(“[image]”); when
   you want the title to be replaced with the image. Doing this takes advantage 
   of a built-in parameter of the_title which will be prepended to the actual title.
   Of course, this plugin will strip that text off again, so the net-result is: 
   the title is replaced with an image of the title in the font of your choice!”
   so the “call” to the title should be: the_title(“-image-“) and i’m supposed to
   put this into my index.php? doesn’t matter how many times i read this… i am just
   too stupid to figure out where i am supposed to but the code `the_title("-image-")`
   can anyone help? dss
 *  [dss](https://wordpress.org/support/users/dss/)
 * (@dss)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66053)
 * oh phooey…
    `Warning: Cannot modify header information - headers already sent
   by (output started at /home/site/public_html/dss/wp-content/plugins/headimagegen.
   php:172) in /home/site/public_html/dss/wp-admin/index.php on line 13` seems somethings
   looping up wrongly… bummer.
 *  Thread Starter [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66055)
 * Do a search for ‘whitespace issue’.
 *  [dss](https://wordpress.org/support/users/dss/)
 * (@dss)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66057)
 * > It’s the whitespace issue again.
   >  Reason and Solution : It is usually because
   > there are spaces, newlines, or other garbage before an opening ‘<?php’ tag 
   > or after a closing ‘?>’ tag, typically in wp-config.php. This could be true
   > about some other file too, so please check the file that gave you the error
   > too (mentioned in the error message).
 * check!
    interesting problem. the plug here was an html document, not a downloadable
   file, but i retyped it myself, checked and double checked it. i suppose it’ll
   tripple check it, and then have a look at my wp-config.php too. interesting. 
   thanks! dss
 *  Thread Starter [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66058)
 * The plugin is displayed in a manner similar to several others.
    Just highlight
   the code you want – in this case starting from <?php and ending at ?> – then 
   copy and paste into Notepad. Much easier than typing !
 *  [dss](https://wordpress.org/support/users/dss/)
 * (@dss)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66059)
 * `Parse error: parse error in /home/imperial/public_html/dss/wp-content/plugins/
   headimagegenerate.php on line 145`
    and errors in the admin section too. bummer…
   i seem to always run into this sort of thing… must be me. dss
 *  [jaykul](https://wordpress.org/support/users/jaykul/)
 * (@jaykul)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66076)
 * In the admin section!? Yikes. Uhm…. It sounds like you either cut-n-pasted too
   much, or too little …
    [http://huddledmasses.org/wp-content/plugins/source.php?file=image-headlines.php&justcode=true](http://huddledmasses.org/wp-content/plugins/source.php?file=image-headlines.php&justcode=true)
   If you copy from below the <hr> to the end, that *should* work, and without affecting
   the admin section at all… I guess I *should* consider offering these for download,
   since the plugins are supposed to be drag-n-drop … but THIS plugin requires the
   user to edit it (at the bottom there, to set the values, as you’ve no doubt read
   about on my home page already: [http://huddledmasses.org-automatic-images-for-headlines/](http://huddledmasses.org-automatic-images-for-headlines/)),
   so I figure cut-n-paste isn’t that big of a deal 😉 Incidentally, this version
   has more logging in place to try to help diagnose errors (as well as the new 
   features mentioned in the edit to the post)
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66078)
 * Dang, decisions decisions. Once I got this working it worked very nicely. However,
   I miss the drop shadow in Matt’s image titles. Any chance something like that
   could be added to this plugin??
 *  [jaykul](https://wordpress.org/support/users/jaykul/)
 * (@jaykul)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66080)
 * Sure, why not. Actually, I meant to do that last night when I made the other 
   change, but I ran out of time and forgot about it.
    Speaking of Matt’s, did he
   release it? If so, why are so many people hitting mine? What’s better about it?
 *  [Beel](https://wordpress.org/support/users/beel/)
 * (@beel)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66082)
 * Yes, he released it but “search” is not a word bandied about around here, much
   less used ;-).
    As for “better”, I don’t know that it is better per se, just 
   dif’rent. His has a shadow effect, but then one has to set the width of the image
   which may cause some people problems. For grins, I put both on my page (just 
   for this evening) if you want to check them out together. I set the font both
   to black and plain jane georgia, as well as used the image his generates as a
   background on yours, so it’ll be more “apples to apples”. An “advantage” to his
   is that it is not specific to WP and titles but can be used just about anywhere.
   <img src=”titles.php?letters=pass_whatever_here” alt=”” /> but a disadvantage:
   no caching.
 *  [TechGnome](https://wordpress.org/support/users/techgnome/)
 * (@techgnome)
 * [21 years, 11 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/#post-66083)
 * Beel, there is a away to get the width dynamically…. that’s what I did for my
   menu that uses php to dynamically create images. It’s not all that difficult 
   really, took some tweaking and playing around, but ti works quite nicely.
    TG

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/page/2/?output_format=md)

The topic ‘Plugin Req: Dynamic Text Replacement’ is closed to new replies.

 * 18 replies
 * 7 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 5 months ago](https://wordpress.org/support/topic/plugin-req-dynamic-text-replacement/page/2/#post-66184)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
