Hi there,
Recently installed this plugin and found that it didn’t work in Firefox.
The path to the cached image was invalid.
Solution:
In your plugin directory go to ‘ttftitles/ttftitles.php’;
Search for ‘$generated_url’ (somewhere around line 798);
and replace
‘$generated_url = $options[‘cache_url’] . DIRECTORY_SEPARATOR . $filename . $extension;’
with
‘$generated_url = $options[‘cache_url’] . ‘/’ . $filename . $extension ;’
And that’s it. Should work now ??
]]>Since the older post (https://www.ads-software.com/support/topic/plugin-ttf-titles-using-in-pages-and-posts?replies=3) has been closed, I’m posting here now. I wanted to share a solution for anyone who is still looking for shortcode-compatibility of TTFTitles.
The problem with ttiefenbach’s code was a limit to WordPress’ shortcode-function. As it says in the docs (https://codex.www.ads-software.com/Function_Reference/add_shortcode) , you’re not allowed to ‘echo’ content within the function. Instead, you have to ‘return’ it. Here’s a working code for functions.php:
function the_ttftext_shortcode( $atts ) {
extract( shortcode_atts( array(
'text' => '',
'echo' => false,
'style' => '',
'overrides' => '',
), $atts ) );
return the_ttftext (esc_attr($text), false, esc_attr($style), esc_attr($overrides));
}
add_shortcode('ttf_text', 'the_ttftext_shortcode');
Now you should be able to use a shortcode for TTFTitles like this:
[ttf_text text="Hello World!" style="basic"]
cheers,
Micha
I’m updating my theme and was using ttftitles plugin for font replacement. I want to switch my theme to using @font-face, but I need to remove the ttftitles code from the theme. I had a programmer add this and if I just try and delete the code, the text vanishes.
please let me know how to properly remove the code. I can’t find any info on how to do this.
thanks
]]>Hi all,
I recently installed the TTFTitles plugin to use to generate header images from my text headings. It was working great and doing what I wanted, but then I got hacked a couple days later and I’m a bit concerned it may have been connected to this plugin.
Does anyone know if this plugin is a possible cause of the hack?
Does anyone have any idea of good alternatives that achieve the same thing? Change headings or other text to images using interesting fonts. I also need something that doesn’t use javascript (as I always have no-script on and don’t want to see the boring headings instead)?
]]>Is there a way to utilize this function in my pages and posts? I don’t want to enable PHP execution on all pages, but more create a way to use something like [the_ttftext(‘text’)]
Any support?
]]>Hi,
I uploaded a Font and in the fonts view it shows, but when I try to save a style having selected this Font it afterwards says “Font “Stahlbetontr?ger-College” was not found.” Is it because the font name has a umlaut? (the ? should be an ?)